diff --git a/Sources/App/configure.swift b/Sources/App/configure.swift index 8181fc1..84821c7 100644 --- a/Sources/App/configure.swift +++ b/Sources/App/configure.swift @@ -12,6 +12,11 @@ public func configure(_ app: Application) throws { allowedMethods: [.GET, .POST, .PUT, .OPTIONS, .DELETE, .PATCH], allowedHeaders: [.accept, .authorization, .contentType, .origin, .xRequestedWith] ))) + + app.http.server.configuration.hostname = "0.0.0.0" + app.http.server.configuration.port = 8080 + + app.databases.use(.postgres( hostname: Environment.get("DATABASE_HOST") ?? "api.sledsoft.com", username: Environment.get("DATABASE_USERNAME") ?? "cod",