From 58af3edd2e25e4ae706a19ff728d711172e4cc2a Mon Sep 17 00:00:00 2001 From: buffet Date: Sat, 20 Apr 2024 18:41:52 +0200 Subject: [PATCH] feat: reduce number of certificates issued, by making everything rely on the buffet.sh cert --- hosts/ami/404.nix | 2 +- hosts/ami/acme.nix | 5 +++++ hosts/ami/bitwarden.nix | 2 +- hosts/ami/forgejo.nix | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/hosts/ami/404.nix b/hosts/ami/404.nix index 5a3ca3f..552426a 100644 --- a/hosts/ami/404.nix +++ b/hosts/ami/404.nix @@ -9,7 +9,7 @@ virtualHosts."404.buffet.sh" = { default = true; - enableACME = true; + useACMEHost = "buffet.sh"; forceSSL = true; root = "${website}/404.html"; }; diff --git a/hosts/ami/acme.nix b/hosts/ami/acme.nix index 734ef9e..231d63c 100644 --- a/hosts/ami/acme.nix +++ b/hosts/ami/acme.nix @@ -3,6 +3,11 @@ _: { acceptTerms = true; defaults.email = "acme@buffet.sh"; certs."buffet.sh" = { + extraDomainNames = [ + "404.buffet.sh" + "bitwarden.buffet.sh" + "buffets.kitchen" + ]; }; }; } diff --git a/hosts/ami/bitwarden.nix b/hosts/ami/bitwarden.nix index 886fcbc..ef33f98 100644 --- a/hosts/ami/bitwarden.nix +++ b/hosts/ami/bitwarden.nix @@ -23,7 +23,7 @@ in { recommendedTlsSettings = true; virtualHosts."bitwarden.buffet.sh" = { - enableACME = true; + useACMEHost = "buffet.sh"; forceSSL = true; locations."/" = { diff --git a/hosts/ami/forgejo.nix b/hosts/ami/forgejo.nix index d3a7932..498bf1c 100644 --- a/hosts/ami/forgejo.nix +++ b/hosts/ami/forgejo.nix @@ -31,7 +31,7 @@ in { recommendedTlsSettings = true; virtualHosts."buffets.kitchen" = { - enableACME = true; + useACMEHost = "buffet.sh"; forceSSL = true; locations."/" = {