####################################################################
#DO NOT MODIFY THE FOLLOWING LINE. It is updated by the installer.
TEMPLATE_CONFIG_VERSION=4.0
####################################################################
# You may edit below.

# directory where the CSS server will be running from
# for those that have an installation already, this would be the directory up to apache-tomcat-css
CSS_HOME=/u01/css

# Java home, e.g. /u01/jdk_21, The Java version must be Java 8 update 192 or later for CSS < 9.0.0.0, and must be version 17 or 21 for 9.x.
# You can set this to a new version during an upgrade to update your Java version.
CSS_JAVA_HOME=

# this is the folder where the plugins reside and other CSS generated folders.  This is CSS's working directory.
# for those that have an installation already, this would come from the jvm argument -Dflexagon.css.install.root
# If upgrading from a recent CSS version, the value from your setenvoverride file will be loaded automatically during the upgrade.
# For Docker, this property is not used. The value ${CSS_HOME}/application is always used for Docker.
WORKING_DIRECTORY=${CSS_HOME}/application

# this is the folder where all of the generated artifacts will be stored.  This is an extremely important folder.
# for those that have an installation already, this would come from the jvm argument -Dflexagon.css.repository.root
# If upgrading from a recent CSS version, the value from your setenvoverride file will be loaded automatically during the upgrade.
# For Docker, this property is not used. The value ${CSS_HOME}/artifacts is always used for Docker.
ARTIFACT_REPOSITORY_DIRECTORY=${CSS_HOME}/artifacts

# the directory where the database will be backed up to.
# If Oracle, this DIRECTORY_NAME must already exist within the DBA_DIRECTORIES table and the DIRECTORY_PATH for the entry must exist on the file system on the Database Server.
# If PostgreSQL, this value is optional. If specified, the database will be backed up using the psql command, which must be available on this local host.
# If PostgreSQL, and this value is not specified, the database schemas will be backed up by cloning to another schema in the same database.
BACKUP_DATABASE_DIRECTORY=


# The application server (Tomcat) port that you will access CSS with (e.g. 8000, 80, 8443, 443, 8080, 8004)
# Required for Docker installs.
# if you are not using docker, and are using SSL, you will need to update your server.xml file manually during the first installation.
CSS_PORT=8001

# If 0, then the installation process will use the newly downloaded context.xml file and adjust the properties accordingly.  If 1, then
# the installation process will save the existing context.xml and replace it after the upgrade so there are no changes to it.
MAINTAIN_EXISTING_CONTEXT_FILE=1

# If 0, then the installation process will use the newly downloaded server.xml file and adjust the properties accordingly.  If 1, then
# the installation process will save the existing server.xml and replace it after the upgrade so there are no changes to it.
MAINTAIN_EXISTING_SERVER_FILE=1

####################################################################
# DATABASE

# fd_admin is the limited access database user for flexdeploy. This user will be created on install and granted permission to the objects that it needs to run CSS.
# If you are running on postgres database with a different limited user, specify it here.
CSS_DB_USER=fd_admin
# The password is optional. You will be prompted for it on install and upgrade if it isn't specified.
CSS_DB_PASSWORD=

#### database user/password ####
# For Postgres, use postgres. For Oracle use system.
SYSTEM_DB_USER=system
# The password is optional. You will be prompted for it on install and upgrade if it isn't specified.
SYSTEM_DB_PASSWORD=

#ACTUAL DATABASE CONNECTION
# See the 3 DATABASE_URL examples below and set URL for your CSS database below.
DATABASE_URL=

# Postgresql database example
#DATABASE_URL="jdbc:postgresql://127.0.0.1:5432/flexdeploy"

# Oracle database  example
#DATABASE_URL="jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=fdsls01.flexagon.azure.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=pflex1)))"

# Oracle ATP database example if needed, the <Wallet_databasename> must be changed to the appropriate wallet folder / zip file name.
# under the CSS_HOME stated above.  If zipped wallets are placed in the install/downloads/wallets folder, the installation
# process will unzip them into the <Wallet_databasename> folders
#DATABASE_URL="jdbc:oracle:thin:@<service_name>?TNS_ADMIN=${CSS_HOME}.wallets/<Wallet_databasename>"


# END DATABASE
####################################################################


####################################################################
# DOCKER

# If installing CSS through Docker you can set the name of the container that will be created by editing the variable below. Defaults to 'css'
CONTAINER_NAME=css
# If installing CSS through docker you can set the timezone of the container. Defaults to 'America/Chicago'. You can find a list of all the available timezones here: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
CONTAINER_TIMEZONE=America/Chicago

# END DOCKER
####################################################################