Skip to content
Snippets Groups Projects
Commit 1ef6b6e4 authored by Bob Mottram's avatar Bob Mottram
Browse files

Create tor site

parent 462bd962
No related branches found
No related tags found
No related merge requests found
......@@ -3,9 +3,17 @@
lang=$1
dest_dir=$2
site_domain=freedombone.net
PROJECT_NAME=freedombone
site_domain=${PROJECT_NAME}.net
site_onion_port=8149
if ! grep -q ":$site_onion_port" /etc/torrc.d/${PROJECT_NAME}; then
{ echo "HiddenServiceDir /var/lib/tor/hidden_service_${PROJECT_NAME}/";
echo 'HiddenServiceVersion 3';
echo "HiddenServicePort 80 127.0.0.1:${site_onion_port}"; } >> /etc/torrc.d/${PROJECT_NAME}
systemctl restart tor
fi
{ echo 'server {';
echo ' listen 80;';
echo ' listen [::]:80;';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment