From 084872be61ad6effd73ef2f7129f2bcd881cd784 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Tue, 1 Aug 2023 16:44:30 +0400 Subject: [PATCH] Returned Onion-Location header, and removed a separate I2P listen statement. --- configs/nginx.conf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/configs/nginx.conf b/configs/nginx.conf index 602a300..d7f966e 100644 --- a/configs/nginx.conf +++ b/configs/nginx.conf @@ -1,7 +1,6 @@ server { listen 443 ssl http2; -# listen 8094; # Tor - listen 127.0.0.1:8114; # I2P + listen 8094; # Tor I2P listen [300:a98d:d6d0:8a08::c]:80; # Yggdrasil server_name upload.arav.su upload.arav.i2p; @@ -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://.onion$request_uri"; + add_header Onion-Location "http://4usftbmjpfexkr2x5xbp5ukmygpmg4fgrnx2wbifsexqctooz5hmviyd.onion$request_uri"; location / {