-
Notifications
You must be signed in to change notification settings - Fork 1
/
configuration.yml
56 lines (44 loc) · 1.91 KB
/
configuration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
githubApiToken: ${GITHUB_API_TOKEN:-}
githubWebServiceUrl: https://api.github.com
githubGameOrg: triplea-game
githubGameRepo: triplea
errorReportToGithubEnabled: ${ERROR_REPORTING_ENABLED:-false}
latestVersionFetcherEnabled: ${LATEST_VERSION_FETCHER_ENABLED:-true}
# this is to help guarantee that we do not accidentally use test configuration in prod.
gameHostConnectivityCheckEnabled: ${GAME_HOST_CONNECTIVITY_CHECK_ENABLED:-false}
# Whether to print out SQL statements as executed, useful for debugging.
logSqlStatements: false
database:
driverClass: org.postgresql.Driver
user: ${DATABASE_USER:-lobby_user}
password: ${DATABASE_PASSWORD:-lobby_user}
url: jdbc:postgresql://${DB_URL:-localhost:5432/lobby_db}
properties:
charSet: UTF-8
# the maximum amount of time to wait on an empty pool before throwing an exception
maxWaitForConnection: 1s
# the SQL query to run when validating a connection's liveness
validationQuery: select 1
# the minimum number of connections to keep open
minSize: 8
# the maximum number of connections to keep open
maxSize: 32
# whether or not idle connections should be validated
checkConnectionWhileIdle: false
# the amount of time to sleep between runs of the idle connection validation, abandoned cleaner and idle pool resizing
evictionInterval: 10s
# the minimum amount of time an connection must sit idle in the pool before it is eligible for eviction
minIdleTime: 1 minute
logging:
# The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.
level: INFO
loggers:
# Set this to DEBUG to troubleshoot HTTP 400 "Unable to process JSON" errors.
io.dropwizard.jersey.jackson.JsonProcessingExceptionMapper: INFO
server:
applicationConnectors:
- type: http
port: ${HTTP_PORT:-8080}
# useForwardedHeaders is important for when behind a reverse proxy (NGINX)
useForwardedHeaders: true
adminConnectors: []