From 650e77210e08aab0e60dcbd62748ed87949d0423 Mon Sep 17 00:00:00 2001 From: finn Date: Tue, 20 Aug 2024 19:40:33 +0000 Subject: [PATCH] move onion address to nginx header --- backend/app/templates/base.html | 1 - proxy/conf | 1 + proxy/sslconf | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/app/templates/base.html b/backend/app/templates/base.html index f1c7aaa..8fc5382 100644 --- a/backend/app/templates/base.html +++ b/backend/app/templates/base.html @@ -22,7 +22,6 @@

oily.dad

-
oilydada7ckiseinkbeathsefwgkvjrce743xy7x7iiybkuxh4vheead.onion

{% with messages = get_flashed_messages() %} diff --git a/proxy/conf b/proxy/conf index 80f6015..25ca6b9 100755 --- a/proxy/conf +++ b/proxy/conf @@ -22,6 +22,7 @@ server { root /var/www/html; index index.php index.html index.htm; + add_header Onion-Location http://oilydada7ckiseinkbeathsefwgkvjrce743xy7x7iiybkuxh4vheead.onion$request_uri; location / { proxy_pass http://backend:8000/; diff --git a/proxy/sslconf b/proxy/sslconf index 80f6015..25ca6b9 100755 --- a/proxy/sslconf +++ b/proxy/sslconf @@ -22,6 +22,7 @@ server { root /var/www/html; index index.php index.html index.htm; + add_header Onion-Location http://oilydada7ckiseinkbeathsefwgkvjrce743xy7x7iiybkuxh4vheead.onion$request_uri; location / { proxy_pass http://backend:8000/;