From 51eaa177b66626b8288a2bc4111f7fc8d3816313 Mon Sep 17 00:00:00 2001 From: notohh Date: Mon, 12 Jun 2023 00:46:43 -0400 Subject: [PATCH] traefik: remove prod config --- hosts/yuki/services/traefik.nix | 34 +-------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/hosts/yuki/services/traefik.nix b/hosts/yuki/services/traefik.nix index d86e60d..3bc8811 100644 --- a/hosts/yuki/services/traefik.nix +++ b/hosts/yuki/services/traefik.nix @@ -1,14 +1,4 @@ -{config, ...}: { - sops.secrets.cloudflare-api-key = {}; - networking.firewall.allowedTCPPorts = [80 443]; - systemd.services.traefik = { - environment = { - CLOUDFLARE_EMAIL = "jch0tm2e@notohh.dev"; - }; - serviceConfig = { - EnvironmentFile = [config.sops.secrets.cloudflare-api-key.path]; - }; - }; +_: { services.traefik = { enable = true; dynamicConfigOptions = { @@ -42,28 +32,6 @@ websecure.address = ":443"; web.address = ":80"; }; - certificatesResolvers = { - staging.acme = { - email = "x3xr6n66@notohh.dev"; - storage = "/var/lib/traefik/acme.json"; - caServer = "https://acme-staging-v02.api.letsencrypt.org/directory"; - dnsChallenge = { - provider = "cloudflare"; - resolvers = ["1.1.1.1:53" "1.0.0.1:53"]; - delayBeforeCheck = "0"; - }; - }; - production.acme = { - email = "x3xr6n66@notohh.dev"; - storage = "/var/lib/traefik/acme.json"; - caServer = "https://acme-v02.api.letsencrypt.org/directory"; - dnsChallenge = { - provider = "cloudflare"; - resolvers = ["1.1.1.1:53" "1.0.0.1:53"]; - delayBeforeCheck = "0"; - }; - }; - }; }; }; }