fix: narrow hwlab v03 public api caddy matcher
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user