{ acme_dns cloudflare order cgi last } , *. { uri path_regexp ^/static/ /public/ handle /.well-known/matrix/server { respond "{\"m.server\": \"matrix.handmade.network:443\"}" header Content-Type application/json } 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.:8888 { cgi /deploy /home/hmn/hmn/server/deploy_hook.sh }