Skip to content

Commit

Permalink
TOR federation (mastodon#7875)
Browse files Browse the repository at this point in the history
  • Loading branch information
J Yeary authored and Gargron committed Jun 26, 2018
1 parent 523d8f2 commit 905bd24
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,24 @@ services:
volumes:
- ./public/packs:/mastodon/public/packs
- ./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:
external_network:
Expand Down
4 changes: 4 additions & 0 deletions priv-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
listen-address 0.0.0.0:8118

forward . .
forward-socks5t .onion tor:9050 .

0 comments on commit 905bd24

Please sign in to comment.