-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfiguration.yml
More file actions
50 lines (43 loc) · 2.07 KB
/
configuration.yml
File metadata and controls
50 lines (43 loc) · 2.07 KB
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
githubApiToken: ${GITHUB_API_TOKEN:-}
githubMapsOrgName: triplea-maps
tripleaOrgName: triplea-game
errorReportingRepo: triplea
# If map indexing is enabled, it will begin shortly after server startup.
# If disabled no map indexing will occur.
mapIndexingEnabled: ${MAP_INDEXING_ENABLED:-false}
# How often between map indexing runs. On each map indexing run we will
# index all maps. If the previous map indexing run is still going
# we will then have multiple indexing jobs running at the same time.
# To avoid overlapping indexing jobs, this value needs to be greater than:
# (number of maps) * (processing time) * (indexingTaskDelaySeconds / 60)
mapIndexingPeriodMinutes: ${MAP_INDEXING_PERIOD_MINUTES:-300}
# Time period in seconds between indexing each individual map. This must
# be configured to avoid github API rate limiting.
# Eg:
# 1 -> one indexing task per second -> 3600 requests per hour.
# 5 -> one indexing task every 5 seconds -> 720 requests per hour.
# 60 -> one indexing task per minute -> 60 requests per hour.
# 120 -> one indexing task every other minute -> 30 requests per hour.
# Unauthenticated Github API requests are limited to 60 request per hour.
# Authenticated Github API requests are limited to 1000 requests per hour.
indexingTaskDelaySeconds: ${MAP_INDEXING_DELAY_SECONDS:-120}
# Whether to print out SQL statements as executed, useful for debugging.
logSqlStatements: false
database:
driverClass: org.postgresql.Driver
user: ${DATABASE_USER:-support_user}
password: ${DATABASE_PASSWORD:-support_user}
url: jdbc:postgresql://${DB_URL:-localhost:5432/support_db}
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: []