{ # 全域設定 email hi@aiacademy.tw # 啟用 Admin API admin 0.0.0.0:2019 acme_ca https://acme-staging-v02.api.letsencrypt.org/directory } test7362.aiacademy.tw { respond "nginx start" 200 } *.test7362.aiacademy.tw { # 根據 Host header 的子域名決定要反向代理到哪裡 # @subdomain host {args[0]}.test.aiacademy.tw # 反向代理到 frp 的 HTTP 埠 reverse_proxy localhost:8080 { header_up Host {host} header_up X-Real-IP {remote_host} header_up X-Forwarded-For {remote_host} header_up X-Forwarded-Proto {scheme} } }