add trusted proxy ip to mastodon

master
Paul Walko 2022-12-23 19:40:18 -05:00
parent 1a5851fba6
commit 69a789372d
1 changed files with 4 additions and 0 deletions

View File

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