Files
init_scripts/admin/Caddyfile
T
2025-08-27 13:41:10 +03:00

35 lines
628 B
Caddyfile

{
email dead@cxap.space
dns cloudflare {$CF_API_TOKEN}
order authorize before reverse_proxy
servers {
trusted_proxies static private_ranges
}
}
# Портал аутентификации
auth.realy.nothing.help {
route {
authp {
backends {
local_backend {
method local
path /data/users.json
}
}
ui {
links {
"Portainer" "https://port.realy.nothing.help"
}
}
}
}
}
# Сниппет для защиты сервисов
(auth_portal_forwarder) {
authorize {
set auth url https://auth.realy.nothing.help
}
}