1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-23 14:46:18 +09:00

TOR federation (#7875)

This commit is contained in:
J Yeary 2018-06-26 14:34:12 -04:00 committed by Eugen Rochko
parent 523d8f20e3
commit 905bd24788
2 changed files with 22 additions and 0 deletions

View File

@ -80,6 +80,24 @@ services:
volumes: volumes:
- ./public/packs:/mastodon/public/packs - ./public/packs:/mastodon/public/packs
- ./public/system:/mastodon/public/system - ./public/system:/mastodon/public/system
## Uncomment to enable federation with tor instances along with adding the following ENV variables
## http_proxy=http://privoxy:8118
## ALLOW_ACCESS_TO_HIDDEN_SERVICE=true
## HIDDEN_SERVICE_VIA_TRANSPARENT_PROXY=true
# tor:
# build: https://github.com/usbsnowcrash/docker-tor.git
# networks:
# - external_network
# - internal_network
#
# privoxy:
# build: https://github.com/usbsnowcrash/docker-privoxy.git
# command: /opt/sbin/privoxy --no-daemon --user privoxy.privoxy /opt/config
# volumes:
# - ./priv-config:/opt/config
# networks:
# - external_network
# - internal_network
networks: networks:
external_network: external_network:

4
priv-config Normal file
View File

@ -0,0 +1,4 @@
listen-address 0.0.0.0:8118
forward . .
forward-socks5t .onion tor:9050 .