|
|
|
|
305
|
fi
|
305
|
fi
|
306
|
|
306
|
|
307
|
echo 'server {' > /etc/nginx/sites-available/smilodon
|
307
|
echo 'server {' > /etc/nginx/sites-available/smilodon
|
308
|
- echo " listen 127.0.0.1:$SMILODON_ONION_PORT;" >> /etc/nginx/sites-available/smilodon
|
|
|
|
|
308
|
+ echo " listen 127.0.0.1:${SMILODON_ONION_PORT} default_server;" >> /etc/nginx/sites-available/smilodon
|
309
|
echo " server_name $SMILODON_ONION_HOSTNAME;" >> /etc/nginx/sites-available/smilodon
|
309
|
echo " server_name $SMILODON_ONION_HOSTNAME;" >> /etc/nginx/sites-available/smilodon
|
310
|
echo '' >> /etc/nginx/sites-available/smilodon
|
310
|
echo '' >> /etc/nginx/sites-available/smilodon
|
311
|
echo ' access_log /dev/null;' >> /etc/nginx/sites-available/smilodon
|
311
|
echo ' access_log /dev/null;' >> /etc/nginx/sites-available/smilodon
|
|
|
|
|
314
|
echo ' location / {' >> /etc/nginx/sites-available/smilodon
|
314
|
echo ' location / {' >> /etc/nginx/sites-available/smilodon
|
315
|
echo ' proxy_pass http://localhost:5000;' >> /etc/nginx/sites-available/smilodon
|
315
|
echo ' proxy_pass http://localhost:5000;' >> /etc/nginx/sites-available/smilodon
|
316
|
echo ' }' >> /etc/nginx/sites-available/smilodon
|
316
|
echo ' }' >> /etc/nginx/sites-available/smilodon
|
317
|
- echo '' >> /etc/nginx/sites-available/smilodon
|
|
|
318
|
echo '}' >> /etc/nginx/sites-available/smilodon
|
317
|
echo '}' >> /etc/nginx/sites-available/smilodon
|
319
|
|
318
|
|
320
|
nginx_ensite smilodon
|
319
|
nginx_ensite smilodon
|