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

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

# Java home, e.g. /u01/jdk_21, The Java version must be Java 8 update 192 or later for FlexDeploy < 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.
FLEXDEPLOY_JAVA_HOME=

# this is the folder where the plugins reside and other FlexDeploy generated folders.  This is FlexDeploy's working directory.
# for those that have an installation already, this would come from the jvm argument -Dflexagon.fd.install.root
# If upgrading from a recent FlexDeploy version, the value from your setenvoverride file will be loaded automatically during the upgrade.
# For Docker, this property is not used. The value ${FLEXDEPLOY_HOME}/application is always used for Docker.
WORKING_DIRECTORY=${FLEXDEPLOY_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.fd.repository.root
# If upgrading from a recent FlexDeploy version, the value from your setenvoverride file will be loaded automatically during the upgrade.
# For Docker, this property is not used. The value ${FLEXDEPLOY_HOME}/artifacts is always used for Docker.
ARTIFACT_REPOSITORY_DIRECTORY=${FLEXDEPLOY_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 FlexDeploy 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.
FLEXDEPLOY_PORT=8000

# 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

# What port should influxdb listen on
# 8086 is the standard influxdb port. However, it is possible to alter this value so that multiple FlexDeploy servers can be run on the box.
INFLUXDB_PORT=8086

####################################################################
# 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 FlexDeploy.
# If you are running on postgres database with a different limited user, specify it here.
FLEXDEPLOY_DB_USER=fd_admin
# The password is optional. You will be prompted for it on install and upgrade if it isn't specified.
FLEXDEPLOY_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 FlexDeploy 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 FLEXDEPLOY_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=${FLEXDEPLOY_HOME}.wallets/<Wallet_databasename>"


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


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

# If installing FlexDeploy through Docker you can set the name of the container that will be created by editing the variable below. Defaults to 'flexdeploy'
CONTAINER_NAME=flexdeploy
# If installing FlexDeploy 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
####################################################################