feat: add header key auth as alternative to IP allowlist
Build Admin / Build image (push) Successful in 43s

This commit is contained in:
vasyansk committed 2026-10-24 14:20:52 +07:00
1 parent 1a4ad47c77
commit c144d0967f
4 files changed
+48 -7

No files matched your search

+2
View File
@@ -10,6 +10,7 @@
# --- Access control (generated by docker-entrypoint.sh from env) ---
# matchers.caddy: @denied_ip / @bad_token definitions (empty when disabled)
# guard.caddy: matching respond directives (empty when disabled)
# scrub_extra.caddy: strips the optional auth key header from upstream requests
# --- Shared upstream request hygiene ---
(scrub) {
@@ -24,6 +25,7 @@
header_up -Forwarded
header_up -Via
header_up -X-Proxy-Token
import /etc/caddy/scrub_extra.caddy
}
# (api) <prefix> <upstream-host> <upstream-path-prefix>