compdemocracy / polis

:milky_way: Open Source AI for large scale open ended feedback
https://pol.is
GNU Affero General Public License v3.0
782 stars 186 forks source link

no more pg-native; new config flag for DATABASE_SSL #1831

Closed ballPointPenguin closed 4 weeks ago

ballPointPenguin commented 4 weeks ago

This should fix the two problems we've had with the streaming exports deploy:

We were using pg-native, in part for its SSL support, but it breaks pg-streaming. But switching off pg-native breaks the heroku deploy since it needs SSL to connect to preprod and prod db. Meanwhile local/dev/etc environments need to NOT use SSL for their db connections.

So we get yet another configuration variable:

DATABASE_SSL (default: false) Must be set to true for heroku or similar production environments (depending on the database host)

colinmegill commented 4 weeks ago

LGTM