mirror of
https://github.com/fruworg/infrastructure.git
synced 2025-01-18 06:30:51 +03:00
Update Caddyfile
This commit is contained in:
parent
3b17f778e5
commit
702a5a0c60
@ -1,25 +1,32 @@
|
||||
# The Caddyfile is an easy way to configure your Caddy web server.
|
||||
#
|
||||
# Unless the file starts with a global options block, the first
|
||||
# uncommented line is always the address of your site.
|
||||
#
|
||||
# To use your own domain name (with automatic HTTPS), first make
|
||||
# sure your domain's A/AAAA DNS records are properly pointed to
|
||||
# this machine's public IP, then replace ":80" below with your
|
||||
# domain name.
|
||||
|
||||
{
|
||||
email im@fruw.org
|
||||
acme_dns google_domains $API_KEY
|
||||
acme_dns google_domains {$API_KEY}
|
||||
}
|
||||
|
||||
vault.fruw.org {
|
||||
handle_path / {
|
||||
reverse_proxy localhost:50000
|
||||
}
|
||||
handle_path /* {
|
||||
@allow {
|
||||
remote_ip forwarded {$WHITE_LIST}
|
||||
}
|
||||
handle @allow {
|
||||
reverse_proxy localhost:50000
|
||||
}
|
||||
respond 403
|
||||
}
|
||||
}
|
||||
|
||||
mail.fruw.org {
|
||||
@allow {
|
||||
remote_ip forwarded {$WHITE_LIST}
|
||||
}
|
||||
handle @allow {
|
||||
reverse_proxy localhost:50001
|
||||
}
|
||||
respond 403
|
||||
}
|
||||
|
||||
matrix.fruw.org, matrix.fruw.org:8448 {
|
||||
rewrite / /_matrix/static/
|
||||
@ -32,46 +39,25 @@ git.fruw.org {
|
||||
}
|
||||
|
||||
turn.fruw.org {
|
||||
#route / {
|
||||
#exec /usr/local/bin/caddy.sh 3478
|
||||
#}
|
||||
|
||||
#@available {
|
||||
# status 0
|
||||
#}
|
||||
|
||||
#respond "whoa! eturnal server is runnig" 200 {
|
||||
# @available
|
||||
#}
|
||||
|
||||
#respond "oops! eturnal server is not running" 503
|
||||
respond "whoa! eturnal server is runnig" 200
|
||||
}
|
||||
|
||||
rclone.fruw.org {
|
||||
@allow {
|
||||
remote_ip forwarded {$WHITE_LIST}
|
||||
}
|
||||
handle @allow {
|
||||
reverse_proxy 127.0.0.1:53682
|
||||
respond "nothing to auth" 404
|
||||
}
|
||||
respond 403
|
||||
}
|
||||
|
||||
cs.fruw.org {
|
||||
respond "whoa! cstrike server is runnig" 200
|
||||
}
|
||||
|
||||
doom.fruw.org {
|
||||
#route / {
|
||||
#exec /usr/local/bin/caddy.sh 10666
|
||||
#}
|
||||
|
||||
#exec /usr/local/bin/caddy.sh 10666
|
||||
|
||||
#@available {
|
||||
# status 0
|
||||
#}
|
||||
|
||||
#respond "whoa! doom2 server is runnig" 200 {
|
||||
# @available
|
||||
#}
|
||||
|
||||
respond "oops! doom2 server is not running" 503
|
||||
}
|
||||
|
||||
@ -88,7 +74,3 @@ ip.fruw.org, http://ip.fruw.org {
|
||||
fruw.org, *.fruw.org {
|
||||
respond "hello there"
|
||||
}
|
||||
|
||||
# Refer to the Caddy docs for more information:
|
||||
# https://caddyserver.com/docs/caddyfile
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user