Add Onion-Location header for Tor Browser discovery.

Mirror NullCart's ONION_HOSTNAME env and nginx clearnet header so visitors on HTTPS see ".onion available".
This commit is contained in:
2026-09-11 16:27:36 +02:00
parent 169bbb8bad
commit ebfe68c132
4 changed files with 19 additions and 1 deletions
+8
View File
@@ -114,6 +114,14 @@ Save and exit the editor. Optional — run once manually to verify:
./deploy/scripts/show-onion.sh
```
Copy the hostname into `.env.prod` as `ONION_HOSTNAME`, then recreate nginx:
```bash
docker compose --env-file .env.prod -f docker-compose.prod.yml up -d --force-recreate nginx
```
Tor Browser will then show ".onion available" when visitors open the clearnet site over HTTPS.
### 9. Updates
```bash