Use new config library + refactor
This commit is contained in:
@@ -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}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user