From 69a789372d7353740e531308e28e1d0577264ddb Mon Sep 17 00:00:00 2001 From: Paul Walko Date: Fri, 23 Dec 2022 19:40:18 -0500 Subject: [PATCH] add trusted proxy ip to mastodon --- fogcutter/docker/mastodon.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fogcutter/docker/mastodon.sh b/fogcutter/docker/mastodon.sh index 74b4532..081cca1 100755 --- a/fogcutter/docker/mastodon.sh +++ b/fogcutter/docker/mastodon.sh @@ -2,6 +2,7 @@ set -e +TRUSTED_PROXY_IP=172.25.0.0/16 LOCAL_DOMAIN=social.bigcavemaps.com REDIS_HOST=mastodon-redis REDIS_PORT=6379 @@ -21,6 +22,7 @@ up () { --name mastodon-web \ --restart unless-stopped \ --env-file mastodon.env \ + --env TRUSTED_PROXY_IP=$TRUSTED_PROXY_IP \ --env LOCAL_DOMAIN=$LOCAL_DOMAIN \ --env REDIS_HOST=$REDIS_HOST \ --env REDIS_PORT=$PORT \ @@ -38,6 +40,7 @@ up () { --name mastodon-streaming \ --restart unless-stopped \ --env-file mastodon.env \ + --env TRUSTED_PROXY_IP=$TRUSTED_PROXY_IP \ --env LOCAL_DOMAIN=$LOCAL_DOMAIN \ --env REDIS_HOST=$REDIS_HOST \ --env REDIS_PORT=$PORT \ @@ -54,6 +57,7 @@ up () { --name mastodon-sidekiq \ --restart unless-stopped \ --env-file mastodon.env \ + --env TRUSTED_PROXY_IP=$TRUSTED_PROXY_IP \ --env LOCAL_DOMAIN=$LOCAL_DOMAIN \ --env REDIS_HOST=$REDIS_HOST \ --env REDIS_PORT=$PORT \