move onion address to nginx header

This commit is contained in:
finn 2024-08-20 19:40:33 +00:00
parent 16a45c495d
commit 650e77210e
3 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,6 @@
</nav> </nav>
<h2>oily.dad</h2> <h2>oily.dad</h2>
<h5>oilydada7ckiseinkbeathsefwgkvjrce743xy7x7iiybkuxh4vheead.onion</h5>
</header> </header>
<hr> <hr>
{% with messages = get_flashed_messages() %} {% with messages = get_flashed_messages() %}

View File

@ -22,6 +22,7 @@ server {
root /var/www/html; root /var/www/html;
index index.php index.html index.htm; index index.php index.html index.htm;
add_header Onion-Location http://oilydada7ckiseinkbeathsefwgkvjrce743xy7x7iiybkuxh4vheead.onion$request_uri;
location / { location / {
proxy_pass http://backend:8000/; proxy_pass http://backend:8000/;

View File

@ -22,6 +22,7 @@ server {
root /var/www/html; root /var/www/html;
index index.php index.html index.htm; index index.php index.html index.htm;
add_header Onion-Location http://oilydada7ckiseinkbeathsefwgkvjrce743xy7x7iiybkuxh4vheead.onion$request_uri;
location / { location / {
proxy_pass http://backend:8000/; proxy_pass http://backend:8000/;