1
0
Fork 0

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>
This commit is contained in:
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_USERNAME=<MY POSTGRES USERNAME>
PEERTUBE_DB_PASSWORD=<MY POSTGRES PASSWORD>
PEERTUBE_DB_SSL=false
# Default to Postgres service name "postgres" in docker-compose.yml
PEERTUBE_DB_HOSTNAME=postgres

View file

@ -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"