This repository has been archived on 2024-07-08. You can view files and clone it, but cannot push or open issues or pull requests.
hmn/server/Caddyfile

25 lines
486 B
Caddyfile

{
acme_dns cloudflare <CLOUDFLARE KEY>
order cgi last
}
<DOMAIN>, *.<DOMAIN> {
uri path_regexp ^/static/ /public/
handle /public/* {
file_server {
root /home/hmn/hmn
}
header {
Access-Control-Allow-Origin *
Access-Control-Allow-Methods "GET, OPTIONS"
}
}
handle {
reverse_proxy localhost:9001
}
}
srv.<DOMAIN>:8888 {
cgi /deploy /home/hmn/hmn/server/deploy_hook.sh <BRANCH>
}