hmn/server/Caddyfile

29 lines
643 B
Caddyfile
Raw Permalink Normal View History

2021-08-28 20:36:52 +00:00
{
acme_dns cloudflare <CLOUDFLARE KEY>
order cgi last
}
<DOMAIN>, *.<DOMAIN> {
2021-09-06 15:14:18 +00:00
uri path_regexp ^/static/ /public/
2021-09-09 16:00:10 +00:00
handle /.well-known/matrix/server {
respond "{\"m.server\": \"matrix.handmade.network:443\"}"
header Content-Type application/json
}
2021-08-28 20:36:52 +00:00
handle /public/* {
file_server {
root /home/hmn/hmn
}
header {
Access-Control-Allow-Origin *
Access-Control-Allow-Methods "GET, OPTIONS"
}
2021-08-28 20:36:52 +00:00
}
handle {
reverse_proxy localhost:9001
}
}
srv.<DOMAIN>:8888 {
cgi /deploy /home/hmn/hmn/server/deploy_hook.sh <BRANCH>
}