diff options
| author | seth <[email protected]> | 2023-08-03 12:13:14 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-08-03 12:13:14 -0400 |
| commit | f7956805347563d2958de5cda0a617dfaca640b5 (patch) | |
| tree | 50d49ea801ae40722026123d60d6091f8de9a1df /hosts/p-body/nginx.nix | |
| parent | 527cea875ab37a7469975cd09906f424b988175c (diff) | |
hosts/atlas+p-body: add workaround for nixos/nixpkgs#210807
Diffstat (limited to 'hosts/p-body/nginx.nix')
| -rw-r--r-- | hosts/p-body/nginx.nix | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/hosts/p-body/nginx.nix b/hosts/p-body/nginx.nix index b2dae30..1d491d2 100644 --- a/hosts/p-body/nginx.nix +++ b/hosts/p-body/nginx.nix @@ -21,20 +21,24 @@ in { proxyWebsockets = true; }; }; - in { - "api.${domain}" = { - enableACME = true; - addSSL = true; - locations = mkProxy "/" "8080"; - }; - - "grafana.${domain}" = { - enableACME = true; - addSSL = true; + mkVHosts = builtins.mapAttrs (_: v: + v + // { + enableACME = true; + # workaround for https://github.com/NixOS/nixpkgs/issues/210807 + acmeRoot = null; + forceSSL = true; + }); + in + mkVHosts { + "api.${domain}" = { + locations = mkProxy "/" "8080"; + }; - locations = mkProxy "/" "4000"; + "grafana.${domain}" = { + locations = mkProxy "/" "4000"; + }; }; - }; }; } |
