From 6d6dcd818c84f1585d1bfd17186abe14e680b496 Mon Sep 17 00:00:00 2001 From: Mork Swork Date: Mon, 16 Feb 2026 12:29:18 -0800 Subject: [PATCH] hai world --- nixos/nginx.nix | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/nixos/nginx.nix b/nixos/nginx.nix index 65413fe..36da9fe 100644 --- a/nixos/nginx.nix +++ b/nixos/nginx.nix @@ -7,7 +7,14 @@ services.nginx = { enable = true; - virtualHosts = { + virtualHosts = let + pdxDestinyRoot = pkgs.runCommand "pdxdestiny-web" {} '' + mkdir -p $out + cp ${./pdxdestiny/index.html} $out/index.html + cp ${pkgs.copyPathToStore ./logo.png} $out/logo.png + ''; + in + { "_default" = { listen = [ { addr = "0.0.0.0"; port = 80; } @@ -19,17 +26,14 @@ return 444; ''; }; - + "pdxdestiny.com" = { - enableACME = true; # Enable Let's Encrypt certificate for HTTPS - forceSSL = false; # Redirect HTTP to HTTPS? - addSSL = true; - root = pkgs.runCommand "pdxdestiny-web" {} '' - mkdir -p $out - cp ${./pdxdestiny/index.html} $out/index.html - cp ${pkgs.copyPathToStore ./logo.png} $out/logo.png - ''; + enableACME = true; + forceSSL = false; + addSSL = true; + root = pdxDestinyRoot; }; + "fbksdigital.com" = { enableACME = true; # Enable Let's Encrypt certificate for HTTPS forceSSL = false; # Redirect HTTP to HTTPS?