From 606b2dd55e4993ce164286453a4fd8b483c4884a Mon Sep 17 00:00:00 2001 From: Michael Simard Date: Mon, 14 Dec 2020 13:54:19 -0600 Subject: [PATCH] change ip to 0.0.0.0 --- Sources/App/configure.swift | 5 +++++ 1 file changed, 5 insertions(+) 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",