From cf63f471a8decfe5070c234059facb01965c74af Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 29 Aug 2022 20:06:58 +0400 Subject: [PATCH] Commented out Tor. Fixed formating. Removed unneeded scheme header. --- configs/nginx.conf | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/configs/nginx.conf b/configs/nginx.conf index 6828ca1..627728f 100644 --- a/configs/nginx.conf +++ b/configs/nginx.conf @@ -1,7 +1,8 @@ server { listen 443 ssl http2; - listen 8090; # Tor +# listen 8090; # Tor listen 127.0.0.1:8111; # I2P + listen [300:a98d:d6d0:8a08::e]:80; # Yggdrasil server_name radio.arav.top radio.arav.i2p mkgnmhmzqm7kyzv7jnzzafvgm7xlmlfvzhgorpapd5or2arnhuktqd.onion; @@ -15,38 +16,31 @@ server { add_header X-Content-Type-Options "nosniff"; add_header X-XSS-Protection "1; mode=block"; add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"; - add_header Onion-Location "http://mkgnmhmzqm7kyzv7jnzzafvgm7xlmlfvzhgorpapd5or2arnhuktqd.onion$request_uri"; +# add_header Onion-Location "http://mkgnmhmzqm7kyzv7jnzzafvgm7xlmlfvzhgorpapd5or2arnhuktqd.onion$request_uri"; location / { - proxy_pass http://unix:/var/run/dwelling-radio/r.sock/; - - proxy_buffering off; - + proxy_pass http://unix:/var/run/dwelling-radio/r.sock; + proxy_buffering off; proxy_set_header X-Client-Timezone $gi2_location_tz; - proxy_set_header Host $host; - proxy_set_header Scheme $scheme; + proxy_set_header Host $host; } location =/filelist { - alias $http_root/shared/radio_filelist.html; - + alias $http_root/shared/radio_filelist.html; default_type text/html; } location =/robots.txt { - alias $http_root/shared/files/radio.robots.txt; - + alias $http_root/shared/files/radio.robots.txt; default_type text/html; } location /live/ { - proxy_pass http://127.0.0.1:8000/; - - proxy_buffering off; - + proxy_pass http://127.0.0.1:8000/; + proxy_buffering off; proxy_set_header X-Real-IP $remote_addr; }