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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user