config: add DB_SSLMODE for managed/remote PG (#10210)

* config: add DB_SSLMODE for managed/remote PG

* streaming: set PG sslmode, defaults to prefer
This commit is contained in:
Sascha 2019-03-08 14:36:28 +01:00 committed by Eugen Rochko
parent 9e33a71efa
commit 42e733681a
2 changed files with 8 additions and 0 deletions

View file

@ -3,6 +3,7 @@ default: &default
pool: <%= ENV["DB_POOL"] || ENV['MAX_THREADS'] || 5 %>
timeout: 5000
encoding: unicode
sslmode: <%= ENV['DB_SSLMODE'] || "prefer" %>
development:
<<: *default
@ -31,3 +32,4 @@ production:
host: <%= ENV['DB_HOST'] || 'localhost' %>
port: <%= ENV['DB_PORT'] || 5432 %>
prepared_statements: <%= ENV['PREPARED_STATEMENTS'] || 'true' %>