adding tor switch and update readme
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
POSTGRES_USER=f0ckm
|
POSTGRES_USER=f0ckm
|
||||||
POSTGRES_DB=f0ckm
|
POSTGRES_DB=f0ckm
|
||||||
POSTGRES_PASSWORD=f0ckm
|
POSTGRES_PASSWORD=f0ckm
|
||||||
# --- Nginx & Let's Encrypt Configuration (Optional) ---
|
# --- Nginx & Tor Profiles (Optional) ---
|
||||||
# Set to 'f0ckm-nginx' to enable the Nginx & Let's Encrypt proxy stack
|
# Set to 'f0ckm-nginx' for Nginx, 'tor' for Tor hidden service, or 'f0ckm-nginx,tor' for both
|
||||||
# COMPOSE_PROFILES=f0ckm-nginx
|
# COMPOSE_PROFILES=tor
|
||||||
#
|
#
|
||||||
# VIRTUAL_HOST=yourdomain.com
|
# VIRTUAL_HOST=yourdomain.com
|
||||||
# LETSENCRYPT_HOST=yourdomain.com
|
# LETSENCRYPT_HOST=yourdomain.com
|
||||||
|
|||||||
22
README.md
22
README.md
@@ -78,3 +78,25 @@ now visit http://localhost:1337 in your browser, you can develop without needing
|
|||||||
## NGINX
|
## NGINX
|
||||||
|
|
||||||
uncomment in .env # COMPOSE_PROFILES=f0ckm-nginx to enable nginx proxy with automatic lets encrypt.
|
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.
|
||||||
|
|
||||||
|
|||||||
@@ -62,6 +62,7 @@
|
|||||||
"show_koepfe": false,
|
"show_koepfe": false,
|
||||||
"hide_sidebar_default": true,
|
"hide_sidebar_default": true,
|
||||||
"koepfe": [],
|
"koepfe": [],
|
||||||
|
"enable_tor_hs": true,
|
||||||
"enable_global_chat": true,
|
"enable_global_chat": true,
|
||||||
"enable_danmaku": true,
|
"enable_danmaku": true,
|
||||||
"private_messages": true,
|
"private_messages": true,
|
||||||
@@ -133,6 +134,8 @@
|
|||||||
"open_registration_require_mail_andor_token": false,
|
"open_registration_require_mail_andor_token": false,
|
||||||
"private_society": false,
|
"private_society": false,
|
||||||
"private_society_gate": "cloudflare",
|
"private_society_gate": "cloudflare",
|
||||||
|
"private_society_gate_location": "Frankfurt",
|
||||||
|
"private_society_gate_template": "_gate_template",
|
||||||
"public_nsfw": false,
|
"public_nsfw": false,
|
||||||
"paths": {
|
"paths": {
|
||||||
"images": "/b",
|
"images": "/b",
|
||||||
|
|||||||
@@ -49,6 +49,8 @@ services:
|
|||||||
tor:
|
tor:
|
||||||
image: dockurr/tor
|
image: dockurr/tor
|
||||||
container_name: tor
|
container_name: tor
|
||||||
|
profiles:
|
||||||
|
- tor
|
||||||
ports:
|
ports:
|
||||||
- "9050:9050"
|
- "9050:9050"
|
||||||
- "8118:8118"
|
- "8118:8118"
|
||||||
|
|||||||
Reference in New Issue
Block a user