caddy: Replace unnecessary pipes

This commit is contained in:
SebastianStork 2025-10-09 00:33:49 +02:00
parent 525d9aef49
commit e46ae6297c

View file

@ -132,8 +132,8 @@ in
let
mkHostConfig = value: ''
import subdomain-log ${value.domain}
@${value.domain |> getSubdomain} host ${(lib.optionalString (!value.tls) "http://") + value.domain}
handle @${value.domain |> getSubdomain} {
@${getSubdomain value.domain} host ${(lib.optionalString (!value.tls) "http://") + value.domain}
handle @${getSubdomain value.domain} {
reverse_proxy localhost:${builtins.toString value.port} ${
lib.optionalString (value.extraReverseProxyConfig != "") "{ ${value.extraReverseProxyConfig} }"
}