foundry: clean up cert testing

This commit is contained in:
Zynh Ludwig 2024-12-27 21:59:07 -08:00
parent 5844a29c7e
commit adc3fae69e

View file

@ -16,12 +16,9 @@ in
{ {
# permafrost.nginx.certDomains = lib.mkIf ACMEEnabled [ "scarlet.zynh.me" ]; # permafrost.nginx.certDomains = lib.mkIf ACMEEnabled [ "scarlet.zynh.me" ];
services.nginx.virtualHosts."scarlet.zynh.me" = { services.nginx.virtualHosts."scarlet.zynh.me" = {
forceSSL = lib.mkIf ACMEEnabled true;
serverName = "scarlet.zynh.me"; serverName = "scarlet.zynh.me";
forceSSL = lib.mkIf ACMEEnabled true;
useACMEHost = lib.mkIf ACMEEnabled "permafrost"; useACMEHost = lib.mkIf ACMEEnabled "permafrost";
locations."/.well-known/acme-challenge" = {
root = "/var/lib/acme/.challenges";
};
locations."/" = { locations."/" = {
extraConfig = /* nginx */ '' extraConfig = /* nginx */ ''
# Set proxy headers # Set proxy headers