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 <chocobozzz@cpy.re>

Co-authored-by: Chocobozzz <chocobozzz@cpy.re>
pull/4048/head
Stakovicz 2021-05-25 11:34:10 +02:00 committed by Chocobozzz
parent 2c2631e42a
commit 78c5e31049
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,7 @@ POSTGRES_DB=peertube
#PEERTUBE_DB_SUFFIX=_prod #PEERTUBE_DB_SUFFIX=_prod
PEERTUBE_DB_USERNAME=<MY POSTGRES USERNAME> PEERTUBE_DB_USERNAME=<MY POSTGRES USERNAME>
PEERTUBE_DB_PASSWORD=<MY POSTGRES PASSWORD> PEERTUBE_DB_PASSWORD=<MY POSTGRES PASSWORD>
PEERTUBE_DB_SSL=false
# Default to Postgres service name "postgres" in docker-compose.yml # Default to Postgres service name "postgres" in docker-compose.yml
PEERTUBE_DB_HOSTNAME=postgres PEERTUBE_DB_HOSTNAME=postgres

View File

@ -19,6 +19,9 @@ database:
suffix: "PEERTUBE_DB_SUFFIX" suffix: "PEERTUBE_DB_SUFFIX"
username: "PEERTUBE_DB_USERNAME" username: "PEERTUBE_DB_USERNAME"
password: "PEERTUBE_DB_PASSWORD" password: "PEERTUBE_DB_PASSWORD"
ssl:
__name: "PEERTUBE_DB_SSL"
__format: "json"
redis: redis:
hostname: "PEERTUBE_REDIS_HOSTNAME" hostname: "PEERTUBE_REDIS_HOSTNAME"