change Server to engineMain with config file (closes #3)
This commit is contained in:
1 parent
600e8a773f
commit
c62ee0c2e6
6 files changed
+103
-38
No files matched your search
@@ -0,0 +1,35 @@
|
||||
ktor {
|
||||
deployment {
|
||||
# alle Server
|
||||
port = 7770
|
||||
host = 0.0.0.0
|
||||
# defaults * 2
|
||||
connectionGroupSize = 4
|
||||
workerGroupSize = 10
|
||||
callGroupSize = 20
|
||||
shutdownGracePeriod = 2000
|
||||
shutdownTimeout = 3000
|
||||
# Netty defaults
|
||||
maxInitialLineLength = 4096
|
||||
maxHeaderSize = 8192
|
||||
maxChunkSize = 8192
|
||||
}
|
||||
application {
|
||||
# ApplicationKt.module() übernimmt die Konfiguration
|
||||
modules = [ net.keinekekse.app.ApplicationKt.module ]
|
||||
}
|
||||
conf {
|
||||
# eigene Parameter -> ktor.conf.<name>
|
||||
#
|
||||
keycloakInternalUrl = "http://kec:8080/realms"
|
||||
keycloakUrl = "https://kec.keinekekse.net/realms"
|
||||
keycloakRealm = "app-server-realm"
|
||||
keycloakClientId = "pkce-book-app"
|
||||
keycloakCertUrl = "protocol/openid-connect/certs"
|
||||
# DB-Params werden vom Container als env vars gesetzt
|
||||
dbHost = ${DB_HOST}
|
||||
dbPort = ${DB_PORT}
|
||||
dbUser = ${DB_USER}
|
||||
dbPassword = ${DB_PASSWORD}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user