From c99900f83de5f44797465845fe5ffb83efb286e0 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 10 Dec 2023 07:58:44 -0500 Subject: atlas: disable acme --- systems/atlas/nginx.nix | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'systems/atlas/nginx.nix') diff --git a/systems/atlas/nginx.nix b/systems/atlas/nginx.nix index 626b4b3..dc40282 100644 --- a/systems/atlas/nginx.nix +++ b/systems/atlas/nginx.nix @@ -1,8 +1,4 @@ -{ - config, - lib, - ... -}: let +{config, ...}: let inherit (config.networking) domain; mkProxy = endpoint: port: { @@ -11,17 +7,6 @@ proxyWebsockets = true; }; }; - - mkVHosts = let - commonSettings = { - enableACME = true; - # workaround for https://github.com/NixOS/nixpkgs/issues/210807 - acmeRoot = null; - - addSSL = true; - }; - in - lib.mapAttrs (_: lib.recursiveUpdate commonSettings); in { server.services.cloudflared.enable = true; @@ -34,7 +19,7 @@ in { recommendedProxySettings = true; recommendedTlsSettings = true; - virtualHosts = mkVHosts { + virtualHosts = { "cache.${domain}" = { locations = mkProxy "/" "5000"; }; -- cgit v1.2.3