]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - support/docker/production/.env
feat(docker): make database name configurable (#5734)
[github/Chocobozzz/PeerTube.git] / support / docker / production / .env
index 8ed9b062b8a710660058ba17183b314d64961cfe..5b3b366f57d19431859c9a8af3aa1b42f501f135 100644 (file)
@@ -3,23 +3,29 @@ POSTGRES_USER=<MY POSTGRES USERNAME>
 POSTGRES_PASSWORD=<MY POSTGRES PASSWORD>
 # Postgres database name "peertube"
 POSTGRES_DB=peertube
-# Editable only with a suffix :
-#POSTGRES_DB=peertube_prod
+# The database name used by PeerTube will be PEERTUBE_DB_NAME (only if set) *OR* 'peertube'+PEERTUBE_DB_SUFFIX
+#PEERTUBE_DB_NAME=<MY POSTGRES DB NAME>
 #PEERTUBE_DB_SUFFIX=_prod
-PEERTUBE_DB_USERNAME=<MY POSTGRES USERNAME>
-PEERTUBE_DB_PASSWORD=<MY POSTGRES PASSWORD>
+# Database username and password used by PeerTube must match Postgres', so they are copied:
+PEERTUBE_DB_USERNAME=$POSTGRES_USER
+PEERTUBE_DB_PASSWORD=$POSTGRES_PASSWORD
+PEERTUBE_DB_SSL=false
 # Default to Postgres service name "postgres" in docker-compose.yml
 PEERTUBE_DB_HOSTNAME=postgres
 
-# Server configuration
+# PeerTube server configuration
+# If you test PeerTube in local: use "peertube.localhost" and add this domain to your host file resolving on 127.0.0.1
 PEERTUBE_WEBSERVER_HOSTNAME=<MY DOMAIN>
-# If you do not use https and a reverse-proxy in docker-compose.yml
-#PEERTUBE_WEBSERVER_PORT=80
+# If you just want to test PeerTube on local
+#PEERTUBE_WEBSERVER_PORT=9000
 #PEERTUBE_WEBSERVER_HTTPS=false
 # If you need more than one IP as trust_proxy
 # pass them as a comma separated array:
 PEERTUBE_TRUST_PROXY=["127.0.0.1", "loopback", "172.18.0.0/16"]
 
+# Generate one using `openssl rand -hex 32`
+PEERTUBE_SECRET=<MY PEERTUBE SECRET>
+
 # E-mail configuration
 # If you use a Custom SMTP server
 #PEERTUBE_SMTP_USERNAME=
@@ -38,12 +44,8 @@ POSTFIX_myhostname=<MY DOMAIN>
 # If you need to generate a list of sub/DOMAIN keys
 # pass them as a whitespace separated string <DOMAIN>=<selector>
 OPENDKIM_DOMAINS=<MY DOMAIN>=peertube
-
-# Let's Encrypt service configuration
-TRAEFIK_ACME_EMAIL=<MY EMAIL ADDRESS>
-# If you need to obtain ACME certificates for more than one DOMAIN
-# pass them as a comma separated string
-TRAEFIK_ACME_DOMAINS=<MY DOMAIN>
+# see https://github.com/wader/postfix-relay/pull/18
+OPENDKIM_RequireSafeKeys=no
 
 # /!\ Prefer to use the PeerTube admin interface to set the following configurations /!\
 #PEERTUBE_SIGNUP_ENABLED=true