infrastructure/configs/Caddyfile

77 lines
1.5 KiB
Caddyfile
Raw Normal View History

2023-09-24 15:46:40 +03:00
{
2023-09-30 13:54:49 +03:00
email im@fruw.org
acme_dns google_domains {$API_KEY}
2023-09-24 15:46:40 +03:00
}
vault.fruw.org {
2023-09-30 13:54:49 +03:00
handle_path / {
reverse_proxy localhost:50000
}
handle_path /* {
@allow {
remote_ip forwarded {$WHITE_LIST}
}
handle @allow {
reverse_proxy localhost:50000
}
respond 403
}
2023-09-24 15:46:40 +03:00
}
mail.fruw.org {
2023-09-30 13:54:49 +03:00
@allow {
remote_ip forwarded {$WHITE_LIST}
}
handle @allow {
reverse_proxy localhost:50001
}
respond 403
2023-09-24 15:46:40 +03:00
}
matrix.fruw.org, matrix.fruw.org:8448 {
2023-09-30 13:54:49 +03:00
rewrite / /_matrix/static/
reverse_proxy /_matrix/* localhost:50003
2023-09-24 15:46:40 +03:00
}
git.fruw.org {
2023-09-30 13:54:49 +03:00
rewrite / /fruworg
reverse_proxy localhost:50005
2023-09-24 15:46:40 +03:00
}
turn.fruw.org {
2023-09-30 13:54:49 +03:00
respond "whoa! eturnal server is runnig" 200
2023-09-24 15:46:40 +03:00
}
rclone.fruw.org {
2023-09-30 13:54:49 +03:00
@allow {
remote_ip forwarded {$WHITE_LIST}
}
handle @allow {
reverse_proxy 127.0.0.1:53682
respond "nothing to auth" 404
}
respond 403
2023-09-24 15:46:40 +03:00
}
cs.fruw.org {
2023-09-30 13:54:49 +03:00
respond "whoa! cstrike server is runnig" 200
2023-09-24 15:46:40 +03:00
}
doom.fruw.org {
2023-09-30 13:54:49 +03:00
respond "oops! doom2 server is not running" 503
2023-09-24 15:46:40 +03:00
}
fs.fruw.org, http://fs.fruw.org {
2023-09-30 13:54:49 +03:00
root * /var/caddy
file_server browse
2023-09-24 15:46:40 +03:00
}
ip.fruw.org, http://ip.fruw.org {
2023-09-30 13:54:49 +03:00
templates
respond "{{.RemoteIP}}"
2023-09-24 15:46:40 +03:00
}
fruw.org, *.fruw.org {
2023-09-30 13:54:49 +03:00
respond "hello there"
2023-09-24 15:46:40 +03:00
}