aboutsummaryrefslogtreecommitdiff
path: root/scripts/provision
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/provision')
-rwxr-xr-xscripts/provision41
1 files changed, 0 insertions, 41 deletions
diff --git a/scripts/provision b/scripts/provision
index 0b4418f..bdc248e 100755
--- a/scripts/provision
+++ b/scripts/provision
@@ -23,44 +23,3 @@ sudo apt install -y $DEPENDENCIES
# Install python dependencies
pip3 install --break-system-packages $DEPENDENCIES_PIP
-
-# Configure an onion service
-trashman install tor-onion-service
-
-# Configure virtual host for the Onion Service
-cat <<-EOF | sudo tee /etc/apache2/sites-available/onion.conf > /dev/null
-<VirtualHost *:80>
- ServerName localhost
- ServerAlias *.onion
- DocumentRoot "/srv/shared/site"
-
- <Directory /srv/shared/site>
- AuthType Basic
- AuthName "Protected"
- AuthUserFile /srv/shared/.htpasswd
- Require valid-user
- </Directory>
-</VirtualHost>
-EOF
-
-# Configure virtual host for the local service
-cat <<-EOF | sudo tee /etc/apache2/sites-available/local.conf > /dev/null
-<VirtualHost *:80>
- ServerName protocolos.local
- DocumentRoot "/srv/shared/site"
-
- <Directory /srv/shared/site>
- Options Indexes FollowSymLinks
- AllowOverride All
- Require all granted
- </Directory>
-</VirtualHost>
-EOF
-
-# Enable virtual host
-sudo a2ensite onion local
-sudo systemctl reload apache2
-
-# Configure PATH
-mkdir -p ~/.custom
-echo 'export PATH=$PATH:/srv/shared/scripts' > ~/.custom/profile