mirror of
https://github.com/deadcxap/init_scripts.git
synced 2026-07-02 05:43:40 +03:00
35 lines
628 B
Caddyfile
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
|
|
}
|
|
}
|