mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
caddy: Remove encode
Apparently `encode` does nothing when you only use caddy as a reverse proxy
This commit is contained in:
parent
223a231f71
commit
e383ee383b
1 changed files with 0 additions and 2 deletions
|
|
@ -131,7 +131,6 @@ in
|
|||
extraConfig =
|
||||
let
|
||||
mkHostConfig = value: ''
|
||||
encode
|
||||
import subdomain-log ${value.domain}
|
||||
@${value.domain |> getSubdomain} host ${(lib.optionalString (!value.tls) "http://") + value.domain}
|
||||
handle @${value.domain |> getSubdomain} {
|
||||
|
|
@ -171,7 +170,6 @@ in
|
|||
value = {
|
||||
logFormat = "output file ${config.services.caddy.logDir}/${value.domain}.log { mode 640 }";
|
||||
extraConfig = ''
|
||||
encode
|
||||
bind tailscale/${getSubdomain value.domain}
|
||||
reverse_proxy localhost:${builtins.toString value.port} ${
|
||||
lib.optionalString (value.extraReverseProxyConfig != "") "{ ${value.extraReverseProxyConfig} }"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue