SSL issues for self hosting with digitalocean's managed postgres #3849
-
Hello, First, thanks very much for this awesome project! I tried to self host plausible CE on my local and the official docker-compose.yml works like a charm. However, the official I am curious, is it possible to host plausible CE with managed postgres? In my case, I use DigitalOcean's managed postgres and SSL is mandatory, ref issue. The error message with DO's managed postgres:
DigitalOcean managed postgres provides their own certificates for managed postgres, for Node.js apps, you can simply set an environment variable NODE_EXTRA_CA_CERTS to make it points to the path of the download ca certificates, and then Node.js apps could connect DO's managed postgres with ssl with no warnings. ![]() From what I can see here:
Thanks very much again for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
Yes, it is possible. You can mount the cacertfile as a volume and provide the path to it via |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm in the same issue.
the interesting part is that: {database,<<"plausible&ssl=true">>} so the ?ssl=true is attached to the database name, there is a problem parsing the db url?
|
Beta Was this translation helpful? Give feedback.
The database URL should end with
ssl=true
, it's an Ecto thing.