fix: narrow hwlab v03 public api caddy matcher

This commit is contained in:
Codex
2026-06-14 03:36:52 +00:00
parent 804d07f6ed
commit b595b67250
+1 -1
View File
@@ -4067,7 +4067,7 @@ function publicExposureCaddyScript(options: NodePublicExposureOptions, exposure:
function publicExposureCaddyBlock(exposure: HwlabRuntimePublicExposureSpec): string {
const tlsLines = exposure.caddyTls === "internal" ? " tls internal\n" : "";
return `${exposure.hostname} {
${tlsLines} @api path /health* /api* /v1* /openapi* /docs* /swagger*
${tlsLines} @api path /health* /auth* /v1* /json-rpc* /openapi* /docs* /swagger*
reverse_proxy @api 127.0.0.1:${exposure.apiProxy.remotePort} {
transport http {
response_header_timeout ${exposure.responseHeaderTimeoutSeconds}s