diff options
author | J Yeary <usbsnowcrash@users.noreply.github.com> | 2018-06-26 14:34:12 -0400 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-06-26 20:34:12 +0200 |
commit | 905bd2478811b6c86662ce4487ca52aab3e583fc (patch) | |
tree | cd9cb4bc1fe8ae114badba71122f2954b1954cc2 | |
parent | 523d8f20e31e033e375325545bb73f7f59610236 (diff) |
TOR federation (#7875)
-rw-r--r-- | docker-compose.yml | 18 | ||||
-rw-r--r-- | priv-config | 4 |
2 files changed, 22 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index 496fb2548..b31095a54 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: diff --git a/priv-config b/priv-config new file mode 100644 index 000000000..1cea49d45 --- /dev/null +++ b/priv-config @@ -0,0 +1,4 @@ +listen-address 0.0.0.0:8118 + +forward . . +forward-socks5t .onion tor:9050 . \ No newline at end of file |