Skip to content

Commit

Permalink
Fuck Bell Labs.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Huerta committed Mar 29, 2016
1 parent 8436941 commit 2a3374f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,19 @@ apt-get install tor deb.torproject.org-keyring

echo 'Setting up Tor onion service...'
mv /etc/tor/torrc /etc/tor/torrc.orig
cp config/tor/torrc /etc/tor/torrc
cp config/tor/torrc /etc/tor/.
service tor reload
ONION_ADDRESS = `cat /var/lib/tor/hidden_service/hostname`

ONION_ADDRESS=`cat /var/lib/tor/hidden_service/hostname`

echo 'Setting up the web server NGINX to use Tor onion service...'
mv /etc/nginx/sites-available/ghost /etc/nginx/sites-available/ghost.orig
cp config/nginx/ghost /etc/nginx/sites-available/ghost
cp config/nginx/ghost /etc/nginx/sites-available/.
sed -i bak -e s/ONION_PLACEHOLDER/$ONION_ADDRESS/g /etc/nginx/sites-available/ghost

echo 'Updating Ghost config to use .onion address...'
mv /var/www/ghost/config.js /var/www/ghost/config.js.orig
cp config/ghost/config.js /var/www/ghost/config.js
cp config/ghost/config.js /var/www/ghost/.
sed -i bak -e s/ONION_PLACEHOLDER/$ONION_ADDRESS/g /var/www/ghost/config.js

echo 'Restarting NGINX...'
Expand Down

0 comments on commit 2a3374f

Please sign in to comment.