kyoo_api does not support sslmode = prefer
bug
### Kyoo's version
v5
### What happened?
When `PGSSLMODE` env variable was set to `prefer`, kyoo_apicould not connect to the database. Logs showed the following:
```log
error: The server does not support SSL connections
at <anonymous> (/$bunfs/root/server:8:16058)
```
Looking through the code, I see there's a comment about an upstream bug.
https://github.com/zoriya/Kyoo/blob/master/api/src/db/index.ts#L22-L24
1 条评论