diff --git a/.swiftpm/xcode/package.xcworkspace/xcuserdata/michielcarman.xcuserdatad/UserInterfaceState.xcuserstate b/.swiftpm/xcode/package.xcworkspace/xcuserdata/michielcarman.xcuserdatad/UserInterfaceState.xcuserstate index 2700a45..684f6fb 100644 Binary files a/.swiftpm/xcode/package.xcworkspace/xcuserdata/michielcarman.xcuserdatad/UserInterfaceState.xcuserstate and b/.swiftpm/xcode/package.xcworkspace/xcuserdata/michielcarman.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Sources/App/configure.swift b/Sources/App/configure.swift index 59cb0be..5eb3cf6 100755 --- a/Sources/App/configure.swift +++ b/Sources/App/configure.swift @@ -7,6 +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 = "1mb" + let timeout = HTTPClient.Configuration.Timeout(connect: .seconds(1000), read: .seconds(1000)) + 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())