Fix Onion-Location on SPA responses behind nginx add_header.

Render the header inside location / so it is not dropped by other location headers; remove the ineffective server-level directive.
This commit is contained in:
2026-10-28 23:12:08 +01:00
parent b97fcc2b20
commit adb1d7bca9
3 changed files with 6 additions and 11 deletions
-2
View File
@@ -22,7 +22,5 @@ server {
ssl_certificate /etc/nginx/certs/live/${CLEARNET_DOMAIN}/fullchain.pem;
ssl_certificate_key /etc/nginx/certs/live/${CLEARNET_DOMAIN}/privkey.pem;
${ONION_LOCATION_HEADER}
include /etc/nginx/snippets/private-image-locations.conf;
}