Set port through configuration

This commit is contained in:
Christoph Hagen 2022-09-04 15:40:52 +02:00
parent 6994a66883
commit f454cc80e4
2 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,8 @@ import Foundation
struct ServerConfiguration: Codable {
let port: Int
let logPath: String
let privateKeyFilePath: String

View File

@ -27,6 +27,8 @@ public func configure(_ app: Application) throws {
return
}
app.http.server.configuration.port = config.port
guard configureAPNS(config) else {
return
}