Skip to content

Commit

Permalink
Merge 24.3 to 24.4
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-teamcity committed Apr 2, 2024
2 parents a7b4fc8 + fdae73f commit c2a70ec
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -78,28 +78,22 @@ logging.level.org.apache.tomcat.util.digester.Digester=INFO
# logging.level.org.springframework.boot.autoconfigure.condition=INFO
# logging.level.org.springframework.core.env.PropertySourcesPropertyResolver=INFO

context.dataSourceName[0]=jdbc/labkeyDataSource
context.driverClassName[0]=org.postgresql.Driver
# context.url[0]=jdbc:postgresql://${POSTGRES_HOST:-localhost}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-${POSTGRES_USER}}${POSTGRES_PARAMETERS:-}
# context.username[0]=${POSTGRES_USER:-postgres}
# context.password[0]=${POSTGRES_PASSWORD:-}
context.resources.jdbc.labkeyDataSource.type=javax.sql.DataSource
context.resources.jdbc.labkeyDataSource.driverClassName=org.postgresql.Driver
# context.resources.jdbc.labkeyDataSource.url=jdbc:postgresql://${POSTGRES_HOST:-localhost}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-${POSTGRES_USER}}${POSTGRES_PARAMETERS:-}
# context.resources.jdbc.labkeyDataSource.username=${POSTGRES_USER:-postgres}
# context.resources.jdbc.labkeyDataSource.password=${POSTGRES_PASSWORD:-}

context.url[0]=@@jdbcUrl@@
context.username[0]=@@jdbcUser@@
context.password[0]=@@jdbcPassword@@
context.resources.jdbc.labkeyDataSource.url=@@jdbcUrl@@
context.resources.jdbc.labkeyDataSource.username=@@jdbcUser@@
context.resources.jdbc.labkeyDataSource.password=@@jdbcPassword@@

# the ':-' setup doesn't appeear to work. They have to be set as env vars anyway, but at least this shows the indended defaults set elsewhere
context.maxTotal[0]=${POSTGRES_MAX_TOTAL_CONNECTIONS:-50}
context.maxIdle[0]=${POSTGRES_MAX_IDLE_CONNECTIONS:-10}
context.maxWaitMillis[0]=${POSTGRES_MAX_WAIT_MILLIS:-120000}
context.accessToUnderlyingConnectionAllowed[0]=${POSTGRES_ACCESS_UNDERLYING_CONNECTIONS:-true}
context.validationQuery[0]=${POSTGRES_VALIDATION_QUERY:-SELECT 1}

# context.dataSourceName[1]=jdbc/@@extraJdbcDataSource@@
# context.driverClassName[1]=@@extraJdbcDriverClassName@@
# context.url[1]=@@extraJdbcURL@@
# context.username[1]=@@extraJdbcUser@@
# context.password[1]=@@extraJdbcPassword@@
context.resources.jdbc.labkeyDataSource.maxTotal=${POSTGRES_MAX_TOTAL_CONNECTIONS:-50}
context.resources.jdbc.labkeyDataSource.maxIdle=${POSTGRES_MAX_IDLE_CONNECTIONS:-10}
context.resources.jdbc.labkeyDataSource.maxWaitMillis=${POSTGRES_MAX_WAIT_MILLIS:-120000}
context.resources.jdbc.labkeyDataSource.accessToUnderlyingConnectionAllowed=${POSTGRES_ACCESS_UNDERLYING_CONNECTIONS:-true}
context.resources.jdbc.labkeyDataSource.validationQuery=${POSTGRES_VALIDATION_QUERY:-SELECT 1}

# send access logs to stdout:
server.tomcat.accesslog.enabled=true
Expand Down

0 comments on commit c2a70ec

Please sign in to comment.