From 78c5e31049900550ef1cb5a1c7d5b90c3aee3eee Mon Sep 17 00:00:00 2001 From: Stakovicz <83301974+stakovicz@users.noreply.github.com> Date: Tue, 25 May 2021 11:34:10 +0200 Subject: Allow SSL database parameter (#4114) * Allow SSL database parameter Allow SSL database parameter via environment variable * Allow SSL database parameter Allow SSL database parameter via environment variable * Update support/docker/production/config/custom-environment-variables.yaml Co-authored-by: Chocobozzz Co-authored-by: Chocobozzz --- support/docker/production/.env | 1 + support/docker/production/config/custom-environment-variables.yaml | 3 +++ 2 files changed, 4 insertions(+) (limited to 'support/docker') diff --git a/support/docker/production/.env b/support/docker/production/.env index 3e19c3817..70743e0ec 100644 --- a/support/docker/production/.env +++ b/support/docker/production/.env @@ -8,6 +8,7 @@ POSTGRES_DB=peertube #PEERTUBE_DB_SUFFIX=_prod PEERTUBE_DB_USERNAME= PEERTUBE_DB_PASSWORD= +PEERTUBE_DB_SSL=false # Default to Postgres service name "postgres" in docker-compose.yml PEERTUBE_DB_HOSTNAME=postgres diff --git a/support/docker/production/config/custom-environment-variables.yaml b/support/docker/production/config/custom-environment-variables.yaml index 8226715e0..0ed060bbf 100644 --- a/support/docker/production/config/custom-environment-variables.yaml +++ b/support/docker/production/config/custom-environment-variables.yaml @@ -19,6 +19,9 @@ database: suffix: "PEERTUBE_DB_SUFFIX" username: "PEERTUBE_DB_USERNAME" password: "PEERTUBE_DB_PASSWORD" + ssl: + __name: "PEERTUBE_DB_SSL" + __format: "json" redis: hostname: "PEERTUBE_REDIS_HOSTNAME" -- cgit v1.2.3