aboutsummaryrefslogtreecommitdiffstats
path: root/docs/example.toml
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-02 21:34:12 +0100
committertv <tv@krebsco.de>2026-11-02 21:34:12 +0100
commitf2b90bbcdb5347bfb68ee0e3343358e2a8e466dc (patch)
treef33dfaa441d1d9bec58ca7a68aa3172f2bdc838d /docs/example.toml
parent7e3a474ad15131f5e246582df8d80f595a52da28 (diff)
api: allow auth delegation
Diffstat (limited to 'docs/example.toml')
-rw-r--r--docs/example.toml14
1 files changed, 12 insertions, 2 deletions
diff --git a/docs/example.toml b/docs/example.toml
index 95b6f52..67f2cfd 100644
--- a/docs/example.toml
+++ b/docs/example.toml
@@ -51,10 +51,20 @@ node-key-file = "/var/lib/continuum/node.key"
# bind-addr = "127.0.0.1:3000"
# Users of the HTTP API (an htpasswd file with Argon2 hashes). Required (but with
-# relay-only: without it, no HTTP API).
+# user-header, or relay-only: without either, no HTTP API).
htpasswd = "/etc/continuum/htpasswd"
-# HTTP API users (from htpasswd) who may write protocol data under /store/_continuum
+# A request header naming the user, set by a reverse proxy in front of the HTTP API that
+# authenticated the request itself (e.g. X-Remote-User, from nginx's $remote_user).
+# Believed only from trusted-proxies; other requests need htpasswd's basic
+# authentication. The proxy must set or clear it on every request.
+# user-header = "X-Remote-User"
+
+# Addresses (an IP address, or a range as ADDRESS/BITS) of the reverse proxies whose
+# user-header is believed.
+# trusted-proxies = ["127.0.0.1", "::1"]
+
+# HTTP API users (from htpasswd or user-header) who may write protocol data under /store/_continuum
# (remake records, members, forget records), e.g. to repair a stuck remake. Such writes
# act on the whole swarm and are logged. Epoch metadata and the swarm ID are never
# writable.