change ip to 0.0.0.0
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user