From 551db6b87f51dd996a9865a151440181bee91bb4 Mon Sep 17 00:00:00 2001 From: jz8132543 Date: Thu, 7 Mar 2024 10:29:21 +0800 Subject: [PATCH] fix: NAT --- nixos/modules/services/traefik.nix | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/nixos/modules/services/traefik.nix b/nixos/modules/services/traefik.nix index 67e2fd84..5d6bd594 100644 --- a/nixos/modules/services/traefik.nix +++ b/nixos/modules/services/traefik.nix @@ -26,17 +26,7 @@ address = ":443"; forwardedHeaders.insecure = true; proxyProtocol.insecure = true; - http.tls = "zerossl"; - # if config.environment.isNAT - # then true - # else {certResolver = "zerossl";}; - http3 = {}; - }; - https-alt = { - address = ":${toString config.environment.altHTTPS}"; - forwardedHeaders.insecure = true; - proxyProtocol.insecure = true; - http.tls = "zerossl"; + http.tls.certResolver = "zerossl"; # if config.environment.isNAT # then true # else {certResolver = "zerossl";};