Update Caddyfile

This commit is contained in:
Руслан 2023-10-01 02:38:23 +06:00 committed by GitHub
parent 702a5a0c60
commit d1dc921d73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,24 @@
{ {
email im@fruw.org email im@fruw.org
acme_dns google_domains {$API_KEY} acme_dns google_domains {$CADDY_API_KEY}
} }
ok.fruw.org {
@block {
not remote_ip forwarded {$WHITE_LIST}
}
handle @block {
basicauth {
{$CADDY_LOGIN} {$CADDY_PASSWORD}
}
reverse_proxy localhost:50009 {
header_up X-Real-IP {remote_host}
}
}
respond "IP already added! :)"
}
vault.fruw.org { vault.fruw.org {
handle_path / { handle_path / {
reverse_proxy localhost:50000 reverse_proxy localhost:50000