-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sslUnsupported #4
Comments
@ladiesman218 I assume you are trying to launch the app connected to a postgres running on your machine (via docker ot otherwise)? You can try to always disable SSL by using |
I think that you have an extra Anyway, I just tried in one of my projects, and it compiles fine for me. Try to copy-paste this app.databases.use(DatabaseConfigurationFactory.postgres(configuration: .init(
hostname: Environment.get("DATABASE_HOST") ?? "localhost",
port: Environment.get("DATABASE_PORT").flatMap(Int.init(_:)) ?? (app.environment == .testing ? 5433 : 5432),
username: Environment.get("DATABASE_USERNAME") ?? "vapor_username",
password: Environment.get("DATABASE_PASSWORD") ?? "vapor_password",
database: Environment.get("DATABASE_NAME") ?? "vapor_database",
tlsConfiguration: .none)
), as: .psql) |
Thx, that solves the issue, but it still cause a xCode warning says: |
Got another thing that I can't understand. Profile means user, right? When I'm posting to Edit: |
Yeah, it shows a deprecation warning, I'll take a look at what API should be used as a replacement. Please do open a new issue for the JWT issue. |
But yes, this project uses firebase auth for user authentication. You'll need to create a firebase project and create a firebase user through their REST API https://firebase.google.com/docs/reference/rest/auth#section-create-email-password or one of the SDKS (iOS, web, ...). You can refer to the unit tests of this project for more info. |
Made a pull request about the new API. #5
|
When trying to start the app, it errored out saying:
error codes.vapor.application : database-id=psql [AsyncKit] Opening new connection for pool failed: PSQLError(code: sslUnsupported)
This should be an tlsConfiguration error, right?
I didn't change anything other than set up a postgres db myself
The text was updated successfully, but these errors were encountered: