diff --git a/nixos/nginx.nix b/nixos/nginx.nix index 45e8443..65413fe 100644 --- a/nixos/nginx.nix +++ b/nixos/nginx.nix @@ -24,22 +24,11 @@ enableACME = true; # Enable Let's Encrypt certificate for HTTPS forceSSL = false; # Redirect HTTP to HTTPS? addSSL = true; - root = "/dev/null"; - locations."/" = { - extraConfig = '' - default_type text/html; - return 200 ' - - - Hello World - - -

Hello World!

-

Welcome to pdxdestiny.com

- - '; - ''; - }; + root = pkgs.runCommand "pdxdestiny-web" {} '' + mkdir -p $out + cp ${./pdxdestiny/index.html} $out/index.html + cp ${pkgs.copyPathToStore ./logo.png} $out/logo.png + ''; }; "fbksdigital.com" = { enableACME = true; # Enable Let's Encrypt certificate for HTTPS diff --git a/nixos/pdxdestiny/index.html b/nixos/pdxdestiny/index.html new file mode 100644 index 0000000..194e91a --- /dev/null +++ b/nixos/pdxdestiny/index.html @@ -0,0 +1 @@ +hai world \ No newline at end of file diff --git a/nixos/pdxdestiny/logo.png b/nixos/pdxdestiny/logo.png new file mode 100644 index 0000000..e69de29