From 1312fed11f1bcc6a60bb1e5c94ac0459d2c5ca96 Mon Sep 17 00:00:00 2001 From: saroar Date: Tue, 14 Nov 2017 09:42:46 +0300 Subject: [PATCH] fixed BaaseUrl issue add initializeSchema(fname) --- Sources/PerfectAuthServer/main.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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