mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
caddy: Replace unnecessary pipes
This commit is contained in:
parent
525d9aef49
commit
e46ae6297c
1 changed files with 2 additions and 2 deletions
|
|
@ -132,8 +132,8 @@ in
|
||||||
let
|
let
|
||||||
mkHostConfig = value: ''
|
mkHostConfig = value: ''
|
||||||
import subdomain-log ${value.domain}
|
import subdomain-log ${value.domain}
|
||||||
@${value.domain |> getSubdomain} host ${(lib.optionalString (!value.tls) "http://") + value.domain}
|
@${getSubdomain value.domain} host ${(lib.optionalString (!value.tls) "http://") + value.domain}
|
||||||
handle @${value.domain |> getSubdomain} {
|
handle @${getSubdomain value.domain} {
|
||||||
reverse_proxy localhost:${builtins.toString value.port} ${
|
reverse_proxy localhost:${builtins.toString value.port} ${
|
||||||
lib.optionalString (value.extraReverseProxyConfig != "") "{ ${value.extraReverseProxyConfig} }"
|
lib.optionalString (value.extraReverseProxyConfig != "") "{ ${value.extraReverseProxyConfig} }"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue