about summary refs log tree commit diff
path: root/config/database.yml
diff options
context:
space:
mode:
Diffstat (limited to 'config/database.yml')
-rw-r--r--config/database.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/database.yml b/config/database.yml
index 82e560515..c10bff6b2 100644
--- a/config/database.yml
+++ b/config/database.yml
@@ -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' %>
+