Use new config library + refactor

This commit is contained in:
2020-04-29 20:04:06 +02:00
parent cbe1a8a7b7
commit fb95413856
8 changed files with 119 additions and 68 deletions
-22
View File
@@ -1,22 +0,0 @@
ktor {
deployment {
port = 8081
port = ${?PORT}
}
application {
modules = [ be.vandewalleh.NotesApplicationKt.module ]
}
}
database {
host = "127.0.0.1"
port = "3306"
name = "Notes"
user = "test"
password = "test"
}
jwt {
secret = "thisisasecret"
secret = ${?SECRET}
}
+22
View File
@@ -0,0 +1,22 @@
env: staging
database:
host: 127.0.0.1
port: 3306
name: Notes
username: test
password: test
server:
host: 0.0.0.0
port: 8081
jwt:
secret: ${random.string(25)}
auth:
validity: 1
unit: HOURS
refresh:
validity: 15
unit: DAYS