|
|
|
@@ -7,8 +7,8 @@ public func configure(_ app: Application) async throws { |
|
|
|
// uncomment to serve files from /Public folder |
|
|
|
// app.middleware.use(FileMiddleware(publicDirectory: app.directory.publicDirectory)) |
|
|
|
app.routes.defaultMaxBodySize = "1000kb" |
|
|
|
let timeout = HTTPClient.Configuration.Timeout(connect: .seconds(300), read: .seconds(300)) |
|
|
|
app.http.client.configuration.timeout = timeout |
|
|
|
// let timeout = HTTPClient.Configuration.Timeout(connect: .seconds(300), read: .seconds(300)) |
|
|
|
// app.http.client.configuration.timeout = timeout |
|
|
|
app.databases.use(.postgres(hostname: "localhost", username: "mcarman", password: "@ng31F@rm0823262", database: "fueling"), as: .psql) |
|
|
|
app.http.server.configuration.port = 3001 |
|
|
|
app.migrations.add(CreateFuelEntry()) |
|
|
|
|