change ip to 0.0.0.0

This commit is contained in:
Michael Simard
2020-12-14 13:54:19 -06:00
parent 550f986dd7
commit 606b2dd55e

View File

@@ -12,6 +12,11 @@ public func configure(_ app: Application) throws {
allowedMethods: [.GET, .POST, .PUT, .OPTIONS, .DELETE, .PATCH], allowedMethods: [.GET, .POST, .PUT, .OPTIONS, .DELETE, .PATCH],
allowedHeaders: [.accept, .authorization, .contentType, .origin, .xRequestedWith] 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( app.databases.use(.postgres(
hostname: Environment.get("DATABASE_HOST") ?? "api.sledsoft.com", hostname: Environment.get("DATABASE_HOST") ?? "api.sledsoft.com",
username: Environment.get("DATABASE_USERNAME") ?? "cod", username: Environment.get("DATABASE_USERNAME") ?? "cod",