|
|
|
@@ -10,7 +10,7 @@ public func configure(_ app: Application) async throws { |
|
|
|
app.routes.defaultMaxBodySize = "128mb" |
|
|
|
// let timeout = HTTPClient.Configuration.Timeout(connect: .seconds(300), read: .seconds(300)) |
|
|
|
// app.http.client.configuration.timeout = timeout |
|
|
|
app.databases.use(.postgres(hostname: "127.0.0.1", port: 5433, username: "mcarman", password: "@ng31F@rm0823262", database: "fueling"), as: .psql) |
|
|
|
app.databases.use(.postgres(hostname: "127.0.0.1", port: 5432, username: "mcarman", password: "@ng31F@rm0823262", database: "fueling"), as: .psql) |
|
|
|
// app.databases.use(DatabaseConfigurationFactory.postgres(configuration: .init( |
|
|
|
// hostname: Environment.get("DATABASE_HOST") ?? "localhost", |
|
|
|
// port: Environment.get("DATABASE_PORT").flatMap(Int.init(_:)) ?? 5433, |
|
|
|
|