adding tor switch and update readme

This commit is contained in:
2026-07-27 12:32:08 +02:00
parent 6a52445987
commit 25ab4ba949
4 changed files with 30 additions and 3 deletions

View File

@@ -78,3 +78,25 @@ now visit http://localhost:1337 in your browser, you can develop without needing
## NGINX
uncomment in .env # COMPOSE_PROFILES=f0ckm-nginx to enable nginx proxy with automatic lets encrypt.
## Tor Hidden Service (.onion)
Tor is bundled in `docker-compose.yml` and preconfigured with a hidden service pointing to the application (`f0ckm:1337`).
When running `docker compose up -d`, Tor automatically generates a `.onion` address for your node. You can find your onion address by running:
```bash
cat ./f0ckm-data/tor/f0ckm_hs/hostname
```
### Automatic Onion-Location Header
To advertise your `.onion` address to Tor Browser users visiting your clearnet site, add your `.onion` address to `config.json`:
```json
"main": {
"onion": "http://yourgeneratedaddress.onion"
}
```
When set, Tor Browser users visiting the HTTPS clearweb site will see a purple **".onion available"** pill in the address bar.