- Add QuillContext with dataSourceLayer and quillLayer - Update application.conf for HikariCP-compatible format - Export combined quillLive layer for database access
42 lines
949 B
Plaintext
42 lines
949 B
Plaintext
server {
|
|
host = "0.0.0.0"
|
|
host = ${?SERVER_HOST}
|
|
port = 8080
|
|
port = ${?SERVER_PORT}
|
|
}
|
|
|
|
# Database configuration for ZIO config (used by AppConfig)
|
|
database {
|
|
host = "localhost"
|
|
host = ${?DB_HOST}
|
|
port = 5432
|
|
port = ${?DB_PORT}
|
|
database = "summercms"
|
|
database = ${?DB_NAME}
|
|
user = "summercms"
|
|
user = ${?DB_USER}
|
|
password = "summercms"
|
|
password = ${?DB_PASSWORD}
|
|
}
|
|
|
|
# HikariCP configuration for Quill DataSource
|
|
# Reads from "database" prefix via Quill.DataSource.fromPrefix
|
|
database {
|
|
dataSourceClassName = "org.postgresql.ds.PGSimpleDataSource"
|
|
dataSource {
|
|
serverName = "localhost"
|
|
serverName = ${?DB_HOST}
|
|
portNumber = 5432
|
|
portNumber = ${?DB_PORT}
|
|
databaseName = "summercms"
|
|
databaseName = ${?DB_NAME}
|
|
user = "summercms"
|
|
user = ${?DB_USER}
|
|
password = "summercms"
|
|
password = ${?DB_PASSWORD}
|
|
}
|
|
# HikariCP pool settings
|
|
maximumPoolSize = 10
|
|
connectionTimeout = 30000
|
|
}
|