mirror of
https://github.com/fruworg/infrastructure.git
synced 2024-11-16 05:17:17 +03:00
Update Caddyfile
This commit is contained in:
parent
702a5a0c60
commit
d1dc921d73
@ -1,8 +1,24 @@
|
||||
{
|
||||
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 {
|
||||
handle_path / {
|
||||
reverse_proxy localhost:50000
|
||||
|
Loading…
Reference in New Issue
Block a user