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