diff --git a/Sources/PerfectAuthServer/main.swift b/Sources/PerfectAuthServer/main.swift index 70bbee2..a92933c 100644 --- a/Sources/PerfectAuthServer/main.swift +++ b/Sources/PerfectAuthServer/main.swift @@ -67,7 +67,9 @@ RequestLogFile.location = "./log.log" // ======================================================================= var oAuth2TokenExpiry = 60 * 24 * 65 // one year - +let opts = initializeSchema(fname) // <-- loads base config like db and email configuration +httpPort = opts["httpPort"] as? Int ?? httpPort +baseURL = opts["baseURL"] as? String ?? baseURL // ======================================================================= // Load DB access