Fix docker-compose setup so Peertube sees correct IP
authorFelix Ableitner <me@nutomic.com>
Tue, 21 May 2019 10:25:00 +0000 (12:25 +0200)
committerChocobozzz <chocobozzz@cpy.re>
Tue, 21 May 2019 14:59:42 +0000 (16:59 +0200)
support/docker/production/.env
support/docker/production/docker-compose.yml

index 7b9092642b22786c5364766b1f262ad1262bd0ab..c8393d0ce808c61d5fb2338644c32101f6aabadf 100644 (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
index df21a14d415fc95f2b95ece57dc3924b62d4075f..263fb6e951be3ecacd560769ecbbde60fcf776e3 100644 (file)
@@ -72,3 +72,10 @@ services:
     labels:
       traefik.enable: "false"
     restart: "always"
+
+networks:
+  default:
+    ipam:
+      driver: default
+      config:
+      - subnet:  172.18.0.0/16