Skip to content

Commit 905bd24

Browse files
J YearyGargron
J Yeary
authored andcommitted
TOR federation (mastodon#7875)
1 parent 523d8f2 commit 905bd24

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

docker-compose.yml

+18
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,24 @@ services:
8080
volumes:
8181
- ./public/packs:/mastodon/public/packs
8282
- ./public/system:/mastodon/public/system
83+
## Uncomment to enable federation with tor instances along with adding the following ENV variables
84+
## http_proxy=http://privoxy:8118
85+
## ALLOW_ACCESS_TO_HIDDEN_SERVICE=true
86+
## HIDDEN_SERVICE_VIA_TRANSPARENT_PROXY=true
87+
# tor:
88+
# build: https://github.com/usbsnowcrash/docker-tor.git
89+
# networks:
90+
# - external_network
91+
# - internal_network
92+
#
93+
# privoxy:
94+
# build: https://github.com/usbsnowcrash/docker-privoxy.git
95+
# command: /opt/sbin/privoxy --no-daemon --user privoxy.privoxy /opt/config
96+
# volumes:
97+
# - ./priv-config:/opt/config
98+
# networks:
99+
# - external_network
100+
# - internal_network
83101

84102
networks:
85103
external_network:

priv-config

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
listen-address 0.0.0.0:8118
2+
3+
forward . .
4+
forward-socks5t .onion tor:9050 .

0 commit comments

Comments
 (0)