forked from ancsemi/Haven
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
73 lines (63 loc) · 2.63 KB
/
.env.example
File metadata and controls
73 lines (63 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Server Config
PORT=3000
HOST=0.0.0.0
# Display name for this server (shown in multi-server sidebar)
SERVER_NAME=Haven
# Secret key for JWT tokens — CHANGE THIS to a long random string!
# (Auto-generated on first boot if left as default)
JWT_SECRET=change-me-to-something-random-and-long
# Your admin username (register with this name first to get admin powers)
ADMIN_USERNAME=admin
# Optional: HTTPS (required for voice chat over the internet)
# Paths are relative to the data directory:
# Windows: %APPDATA%\Haven\
# Linux/macOS: ~/.haven/
# SSL_CERT_PATH=./certs/cert.pem
# SSL_KEY_PATH=./certs/key.pem
# Force HTTP mode (useful behind a reverse proxy like Caddy, nginx, etc.)
# Set to true to skip SSL even if certificates exist.
# FORCE_HTTP=false
# Optional: Override the data directory location
# HAVEN_DATA_DIR=
# Optional: Override STUN servers for voice/WebRTC.
# Default: stun.stunprotocol.org + stun.nextcloud.com
# Comma-separated list of STUN URIs. Set this to point at your own coturn
# or any STUN server for fully self-hosted voice with no external dependencies.
# STUN_URLS=stun:your-server.com:3478,stun:backup-server.com:3478
# Optional: TURN server for voice/screen sharing across the internet.
# Without TURN, voice only works on the same network (LAN).
# Recommended: run coturn on the same box or a cheap VPS.
#
# Option A — Shared secret (coturn --use-auth-secret, recommended):
# TURN_URL=turn:your-server.com:3478
# TURN_SECRET=your-coturn-static-auth-secret
#
# Option B — Static credentials:
# TURN_URL=turn:your-server.com:3478
# TURN_USERNAME=haven
# TURN_PASSWORD=your-password
# Optional: GIPHY API key (free — get one at https://developers.giphy.com/dashboard/)
# GIPHY_API_KEY=
# ── Dynamic DNS auto-updater ─────────────────────────────
# Keeps a DNS record pointed at this server's current public IP so your
# domain (e.g. anchaven.duckdns.org) never goes stale when your ISP
# rotates your IP. Disabled unless DDNS_PROVIDER is set.
#
# DuckDNS:
# DDNS_PROVIDER=duckdns
# DDNS_DOMAINS=your-subdomain (no .duckdns.org, comma-separated for multiple)
# DDNS_TOKEN=your-duckdns-token (from https://www.duckdns.org/)
#
# Cloudflare:
# DDNS_PROVIDER=cloudflare
# DDNS_CF_API_TOKEN=... (token with Zone:DNS:Edit on the zone)
# DDNS_CF_ZONE_ID=...
# DDNS_CF_RECORD_ID=...
# DDNS_CF_RECORD_NAME=haven.example.com
#
# Generic (anything that takes the IP in a URL):
# DDNS_PROVIDER=generic
# DDNS_URL=https://example.com/update?host=h&ip={ip}
#
# Common:
# DDNS_INTERVAL_MINUTES=5 (how often to re-check; default 5)