mirror of
https://github.com/antitree/private-tor-network
synced 2025-06-26 18:16:51 +00:00
Finished support for hidden services and demo web app
This commit is contained in:
parent
b743794397
commit
20d02fd326
@ -78,12 +78,22 @@ services:
|
|||||||
- "80"
|
- "80"
|
||||||
environment:
|
environment:
|
||||||
ROLE: HS
|
ROLE: HS
|
||||||
|
# This will create a hidden service that points to
|
||||||
|
# the service "web" which is runing nginx. You can
|
||||||
|
# change this to whatever ip or hostname you want
|
||||||
TOR_HS_PORT: "80"
|
TOR_HS_PORT: "80"
|
||||||
TOR_HS_ADDR: "127.0.0.1"
|
TOR_HS_ADDR: "web"
|
||||||
volumes:
|
volumes:
|
||||||
- ./tor:/tor
|
- ./tor:/tor
|
||||||
depends_on:
|
depends_on:
|
||||||
- da1
|
- da1
|
||||||
- da2
|
- da2
|
||||||
- da3
|
- da3
|
||||||
|
links:
|
||||||
|
- web
|
||||||
|
web:
|
||||||
|
image: nginx
|
||||||
|
expose:
|
||||||
|
- "80"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -68,6 +68,10 @@ if [ ! -e /tor-config-done ]; then
|
|||||||
echo -e "SOCKSPort 0.0.0.0:9050" >> /etc/tor/torrc
|
echo -e "SOCKSPort 0.0.0.0:9050" >> /etc/tor/torrc
|
||||||
;;
|
;;
|
||||||
HS)
|
HS)
|
||||||
|
# NOTE By default the HS role will point to a service running on port 80
|
||||||
|
# but there is no service running on port 80. You can either attach to
|
||||||
|
# the container and start one, or better yet, point to another docker
|
||||||
|
# container on the network by setting the TOR_HS_ADDR to its IP
|
||||||
echo "Setting role to HIDDENSERVICE"
|
echo "Setting role to HIDDENSERVICE"
|
||||||
echo -e "HiddenServiceDir ${TOR_DIR}/${TOR_NICKNAME}/hs" >> /etc/tor/torrc
|
echo -e "HiddenServiceDir ${TOR_DIR}/${TOR_NICKNAME}/hs" >> /etc/tor/torrc
|
||||||
if [ -z "${TOR_HS_PORT}" ]; then
|
if [ -z "${TOR_HS_PORT}" ]; then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user