flake/hosts/blacksteel/Caddyfile

60 lines
1.1 KiB
Text
Raw Normal View History

{
servers {
trusted_proxies static private_ranges
trusted_proxies_strict
}
}
2024-06-21 07:18:05 +00:00
(default) {
encode zstd gzip
handle_path /robots.txt {
file_server * {
2024-08-11 10:08:41 +00:00
root @robots@
2024-06-21 07:18:05 +00:00
}
}
}
http://mastodon.ny4.dev:80 {
import default
handle_path /system/* {
file_server * {
root /var/lib/mastodon/public-system
}
}
handle /api/v1/streaming/* {
reverse_proxy unix//run/mastodon-streaming/streaming-1.socket {
header_up X-Forwarded-Proto "https"
}
}
route * {
file_server * {
root @mastodon@/public
pass_thru
}
reverse_proxy * unix//run/mastodon-web/web.socket {
header_up X-Forwarded-Proto "https"
}
}
handle_errors {
root * @mastodon@/public
rewrite 500.html
file_server
}
}
http://matrix.ny4.dev:80 {
import default
2024-07-24 16:55:58 +00:00
reverse_proxy /_matrix/* unix//run/matrix-synapse/synapse.sock {
header_up X-Forwarded-Proto "https"
}
reverse_proxy /_synapse/client/* unix//run/matrix-synapse/synapse.sock {
header_up X-Forwarded-Proto "https"
}
reverse_proxy /health unix//run/matrix-synapse/synapse.sock {
header_up X-Forwarded-Proto "https"
}
2024-06-21 07:18:05 +00:00
}