Fix docker-compose setup so Peertube sees correct IP

This commit is contained in:
Felix Ableitner 2019-05-21 12:25:00 +02:00 committed by Chocobozzz
parent 21d141c296
commit 1bab2bbc11
2 changed files with 8 additions and 2 deletions

View File

@ -5,8 +5,7 @@ PEERTUBE_WEBSERVER_PORT=443
PEERTUBE_WEBSERVER_HTTPS=true
# If you need more than one IP as trust_proxy
# pass them as a comma separated array:
PEERTUBE_TRUST_PROXY=["127.0.0.1"]
#PEERTUBE_TRUST_PROXY=["127.0.0.1", "loopback", "192.168.1.0/24"]
PEERTUBE_TRUST_PROXY=["127.0.0.1", "loopback", "172.18.0.0/16"]
#PEERTUBE_SMTP_USERNAME=
#PEERTUBE_SMTP_PASSWORD=
PEERTUBE_SMTP_HOSTNAME=postfix

View File

@ -72,3 +72,10 @@ services:
labels:
traefik.enable: "false"
restart: "always"
networks:
default:
ipam:
driver: default
config:
- subnet: 172.18.0.0/16