updated to latest version of dockerfile

This commit is contained in:
jsevans 2020-02-29 15:10:45 +01:00
parent c080c3e063
commit 99b42dc318
3 changed files with 12 additions and 2 deletions

View file

@ -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 && \

View file

@ -19,3 +19,4 @@ ORPort 9001
SocksPort 0
# useless line for Jinja bug
HiddenServiceVersion 3

8
assets/v3onions Normal file
View 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