2023-09-24 15:46:40 +03:00
|
|
|
{
|
2023-09-30 13:54:49 +03:00
|
|
|
email im@fruw.org
|
2023-09-30 23:38:23 +03:00
|
|
|
acme_dns google_domains {$CADDY_API_KEY}
|
2023-09-24 15:46:40 +03:00
|
|
|
}
|
|
|
|
|
2023-10-08 20:38:20 +03:00
|
|
|
fruw.org {
|
|
|
|
root * /var/caddy/hugo
|
|
|
|
file_server
|
|
|
|
}
|
|
|
|
|
2023-09-30 23:38:23 +03:00
|
|
|
ok.fruw.org {
|
|
|
|
@block {
|
2023-10-08 20:38:20 +03:00
|
|
|
not client_ip {$WHITE_LIST}
|
2023-09-30 23:38:23 +03:00
|
|
|
}
|
|
|
|
handle @block {
|
|
|
|
basicauth {
|
|
|
|
{$CADDY_LOGIN} {$CADDY_PASSWORD}
|
|
|
|
}
|
|
|
|
reverse_proxy localhost:50009 {
|
|
|
|
header_up X-Real-IP {remote_host}
|
|
|
|
}
|
|
|
|
}
|
2023-10-08 20:38:20 +03:00
|
|
|
respond "IP bleached! :)"
|
2023-09-30 23:38:23 +03:00
|
|
|
}
|
|
|
|
|
2023-09-24 15:46:40 +03:00
|
|
|
vault.fruw.org {
|
2023-10-08 20:38:20 +03:00
|
|
|
handle_path /admin {
|
|
|
|
@block {
|
|
|
|
not client_ip {$WHITE_LIST}
|
2023-09-30 13:54:49 +03:00
|
|
|
}
|
2023-10-08 20:38:20 +03:00
|
|
|
handle @block {
|
|
|
|
redir https://ok.fruw.org
|
2023-09-30 13:54:49 +03:00
|
|
|
}
|
2023-10-08 20:38:20 +03:00
|
|
|
reverse_proxy localhost:50000
|
2023-09-30 13:54:49 +03:00
|
|
|
}
|
2023-10-08 20:38:20 +03:00
|
|
|
reverse_proxy localhost:50000
|
2023-09-24 15:46:40 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
mail.fruw.org {
|
2023-10-08 20:38:20 +03:00
|
|
|
@block {
|
|
|
|
not client_ip {$WHITE_LIST}
|
2023-09-30 13:54:49 +03:00
|
|
|
}
|
2023-10-08 20:38:20 +03:00
|
|
|
handle @block {
|
|
|
|
redir https://ok.fruw.org
|
2023-09-30 13:54:49 +03:00
|
|
|
}
|
2023-10-08 20:38:20 +03:00
|
|
|
reverse_proxy localhost:50001
|
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-10-08 20:38:20 +03:00
|
|
|
@block {
|
|
|
|
not client_ip {$WHITE_LIST}
|
2023-09-30 13:54:49 +03:00
|
|
|
}
|
2023-10-08 20:38:20 +03:00
|
|
|
handle @block {
|
|
|
|
redir https://ok.fruw.org
|
2023-09-30 13:54:49 +03:00
|
|
|
}
|
2023-10-08 20:38:20 +03:00
|
|
|
reverse_proxy 127.0.0.1:53682
|
|
|
|
respond "nothing to auth" 404
|
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-10-08 20:38:20 +03:00
|
|
|
root * /var/caddy/fs
|
2023-09-30 13:54:49 +03:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2023-10-08 20:38:20 +03:00
|
|
|
*.fruw.org {
|
2023-09-30 13:54:49 +03:00
|
|
|
respond "hello there"
|
2023-09-24 15:46:40 +03:00
|
|
|
}
|