src/main/resources/server.conf
# Default configuration for DPC Dropwizard services
database {
driverClass = org.postgresql.Driver
url = "jdbc:postgresql://localhost:5432/dpc_attribution"
user = postgres
user = ${?ATTRIBUTION_DB_USER}
password = dpc-safe
password = ${?ATTRIBUTION_DB_PASS}
initialSize = 5
minSize = 5
maxSize = 10
}
queuedb {
driverClass = org.postgresql.Driver
url = "jdbc:postgresql://localhost:5432/dpc_queue"
user = postgres
user = ${?QUEUE_DB_USER}
password = dpc-safe
password = ${?QUEUE_DB_PASS}
initialSize = 5
minSize = 5
maxSize = 10
}
consentdb {
driverClass = org.postgresql.Driver
url = "jdbc:postgresql://localhost:5432/dpc_consent"
user = postgres
user = ${?CONSENT_DB_USER}
password = dpc-safe
password = ${?CONSENT_DB_PASS}
initialSize = 5
minSize = 5
maxSize = 10
}
server {
enableThreadNameFilter = false
registerDefaultExceptionMappers = false
applicationConnectors = [{
type = http
port = 3002
}]
adminConnectors = [{
type = http
port = 9900
}]
}
logging {
appenders = [{
type = console
timeZone = UTC
layout {
type = json
timestampFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
}
# Prevent log entries from being dropped under all circumstances
# While nice from a performance standpoint, we must ensure full audit capability of the application
discardingThreshold = 0
}]
loggers {
"liquibase" = INFO
"gov.cms.dpc.queue.DistributedBatchQueue" = DEBUG
"org.hibernate" = ERROR
}
}