Add backend/.env.example

It shows what ORIGINS has to look like: exactly what browsers send as Origin, so scheme, host and a
non-default port, without path or trailing slash. Anything else locks out every client. CADDY_NETWORK
is there too, commented out with its default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
SchluffeandClaude Opus 5.5 committed 2026-10-25 18:51:42 +01:00
1 parent 8b36e51b56
commit 5729ed62f7
2 files changed
+11 -2

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
# Copy to .env next to compose.yaml and adjust.
# Where HellCon is served from, as browsers send it in the Origin header: scheme, host and port if not
# the default, no path and no trailing slash. Several separated by commas or spaces. The tracker refuses
# every other origin.
ORIGINS=https://hellcon.example.org
# The external network Caddy is on, "caddy" if unset.
#CADDY_NETWORK=caddy
+2 -2
View File
@@ -1,6 +1,6 @@
# HellCon's own servers: a tracker behind Caddy and a STUN server. Neither is needed, the client works # HellCon's own servers: a tracker behind Caddy and a STUN server. Neither is needed, the client works
# with any WebTorrent tracker and STUN server. Set ORIGINS in .env next to this file, e.g. # with any WebTorrent tracker and STUN server. Copy .env.example to .env and set ORIGINS there, then
# ORIGINS=https://hellcon.example.org, then `docker compose up -d --build`. Caddy, in its own compose # `docker compose up -d --build`. Caddy, in its own compose
# project, proxies to the tracker over its network (CADDY_NETWORK, "caddy" unless set): # project, proxies to the tracker over its network (CADDY_NETWORK, "caddy" unless set):
# #
# tracker.example.org { # tracker.example.org {