From 64d2347eefae13729621bdb5ebdf57d43a2d2b81 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 22 Jul 2023 22:49:43 +0400 Subject: [PATCH] Uncomment Onion-Location header. Removed a separate I2P listen statement. --- configs/nginx.conf | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/configs/nginx.conf b/configs/nginx.conf index d85726d..162bb66 100644 --- a/configs/nginx.conf +++ b/configs/nginx.conf @@ -1,7 +1,6 @@ server { listen 443 ssl http2; -# listen 8090; # Tor - listen 127.0.0.1:8111; # I2P + listen 8091; # Tor I2P listen [300:a98d:d6d0:8a08::e]:80; # Yggdrasil server_name radio.arav.su radio.arav.i2p mkgnmhmzqm7kyzv7jnzzafvgm7xlmlfvzhgorpapd5or2arnhuktqd.onion; @@ -16,7 +15,7 @@ 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://wsmkgnmhmzqm7kyzv7jnzzafvgm7xlmlfvzhgorpapd5or2arnhuktqd.onion$request_uri"; location / { @@ -48,7 +47,7 @@ server { add_header X-Frame-Options "DENY"; add_header X-Content-Type-Options "nosniff"; add_header X-XSS-Protection "1; mode=block"; -# add_header Onion-Location "http://mkgnmhmzqm7kyzv7jnzzafvgm7xlmlfvzhgorpapd5or2arnhuktqd.onion/live$request_uri"; + add_header Onion-Location "http://wsmkgnmhmzqm7kyzv7jnzzafvgm7xlmlfvzhgorpapd5or2arnhuktqd.onion/live$request_uri"; location / {