mirror of
https://github.com/cmehay/docker-tor-hidden-service.git
synced 2025-04-21 22:39:10 +00:00
updated to latest version of dockerfile
This commit is contained in:
parent
c080c3e063
commit
99b42dc318
3 changed files with 12 additions and 2 deletions
|
@ -28,8 +28,9 @@ RUN mkdir -p /etc/tor/
|
|||
ADD assets/entrypoint-config.yml /
|
||||
ADD assets/onions /usr/local/src/onions
|
||||
ADD assets/torrc /var/local/tor/torrc.tpl
|
||||
ADD assets/v3onions /usr/bin/v3onions
|
||||
|
||||
|
||||
RUN chmod +x /usr/bin/v3onions
|
||||
RUN cd /usr/local/src/onions && python3 setup.py install
|
||||
|
||||
RUN mkdir -p ${HOME}/.tor && \
|
||||
|
|
|
@ -19,3 +19,4 @@ ORPort 9001
|
|||
SocksPort 0
|
||||
|
||||
# useless line for Jinja bug
|
||||
HiddenServiceVersion 3
|
||||
|
|
8
assets/v3onions
Normal file
8
assets/v3onions
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
#Define Variables
|
||||
PORT=`onions | awk -F: '{ print $NF }'`
|
||||
ONION=`ls -l /var/lib/tor/hidden_service/*/hostname | cut -c58- && cat /var/lib/tor/hidden_service/*/hostname`
|
||||
|
||||
#Displace v3address:port
|
||||
echo $ONION:$PORT
|
Loading…
Add table
Reference in a new issue