Browse Source

TOR federation (#7875)

J Yeary 5 months ago
parent
commit
905bd24788
2 changed files with 22 additions and 0 deletions
  1. 18
    0
      docker-compose.yml
  2. 4
    0
      priv-config

+ 18
- 0
docker-compose.yml View File

@@ -80,6 +80,24 @@ services:
80 80
     volumes:
81 81
       - ./public/packs:/mastodon/public/packs
82 82
       - ./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
83 101
 
84 102
 networks:
85 103
   external_network:

+ 4
- 0
priv-config View File

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