Set port through configuration
This commit is contained in:
parent
6994a66883
commit
f454cc80e4
@ -2,6 +2,8 @@ import Foundation
|
|||||||
|
|
||||||
struct ServerConfiguration: Codable {
|
struct ServerConfiguration: Codable {
|
||||||
|
|
||||||
|
let port: Int
|
||||||
|
|
||||||
let logPath: String
|
let logPath: String
|
||||||
|
|
||||||
let privateKeyFilePath: String
|
let privateKeyFilePath: String
|
||||||
|
@ -27,6 +27,8 @@ public func configure(_ app: Application) throws {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
app.http.server.configuration.port = config.port
|
||||||
|
|
||||||
guard configureAPNS(config) else {
|
guard configureAPNS(config) else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user