default server

This commit is contained in:
Bob Mottram 2017-11-23 19:20:50 +00:00
parent 4df89d39b1
commit 7c06684656
1 changed files with 1 additions and 2 deletions

View File

@ -305,7 +305,7 @@ function install_smilodon {
fi fi
echo 'server {' > /etc/nginx/sites-available/smilodon echo 'server {' > /etc/nginx/sites-available/smilodon
echo " listen 127.0.0.1:$SMILODON_ONION_PORT;" >> /etc/nginx/sites-available/smilodon echo " listen 127.0.0.1:${SMILODON_ONION_PORT} default_server;" >> /etc/nginx/sites-available/smilodon
echo " server_name $SMILODON_ONION_HOSTNAME;" >> /etc/nginx/sites-available/smilodon echo " server_name $SMILODON_ONION_HOSTNAME;" >> /etc/nginx/sites-available/smilodon
echo '' >> /etc/nginx/sites-available/smilodon echo '' >> /etc/nginx/sites-available/smilodon
echo ' access_log /dev/null;' >> /etc/nginx/sites-available/smilodon echo ' access_log /dev/null;' >> /etc/nginx/sites-available/smilodon
@ -314,7 +314,6 @@ function install_smilodon {
echo ' location / {' >> /etc/nginx/sites-available/smilodon echo ' location / {' >> /etc/nginx/sites-available/smilodon
echo ' proxy_pass http://localhost:5000;' >> /etc/nginx/sites-available/smilodon echo ' proxy_pass http://localhost:5000;' >> /etc/nginx/sites-available/smilodon
echo ' }' >> /etc/nginx/sites-available/smilodon echo ' }' >> /etc/nginx/sites-available/smilodon
echo '' >> /etc/nginx/sites-available/smilodon
echo '}' >> /etc/nginx/sites-available/smilodon echo '}' >> /etc/nginx/sites-available/smilodon
nginx_ensite smilodon nginx_ensite smilodon