diff options
Diffstat (limited to 'scripts/provision')
-rwxr-xr-x | scripts/provision | 46 |
1 files changed, 1 insertions, 45 deletions
diff --git a/scripts/provision b/scripts/provision index a211e40..2798ea4 100755 --- a/scripts/provision +++ b/scripts/provision @@ -7,10 +7,7 @@ DIRNAME="`dirname $0`" # Basic dependencies -DEPENDENCIES="make pandoc tor" - -# Dependenicies for genesis-get -#DEPENDENCIES="$DEPENDENCIES tor python3-requests python3-bs4 python3-socks python3-pybtex python3-tqdm" +DEPENDENCIES="make pandoc" # PyPI dependencies #DEPENDENCIES_PIP="" @@ -23,44 +20,3 @@ sudo apt install -y $DEPENDENCIES # Install python dependencies #pip3 install $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/" - - <Directory /srv/shared/> - 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 slides.local - DocumentRoot "/srv/shared/" - - <Directory /srv/shared/> - 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 |