about summary refs log tree commit diff
path: root/nixosConfigurations/manwe/webserver.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--nixosConfigurations/manwe/webserver.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/nixosConfigurations/manwe/webserver.nix b/nixosConfigurations/manwe/webserver.nix
index 9e19474..6f8e088 100644
--- a/nixosConfigurations/manwe/webserver.nix
+++ b/nixosConfigurations/manwe/webserver.nix
@@ -1,6 +1,7 @@
 {
   inputs,
   lib,
+  pkgs,
   ...
 }:
 with lib; {
@@ -8,6 +9,14 @@ with lib; {
     enable = true;
     virtualHosts = with my.domain;
       {
+        # TODO Use a Self-signed certificate.
+        # TODO Allow overriding config.json, possibly via NGINX itself.
+        "start.local" = {
+          root = pkgs.hiccup;
+          locations."/".tryFiles = "$uri $uri/ /index.html";
+          enableACME = false;
+          forceSSL = false;
+        };
         ${shire}.locations."/".return = "301 https://www.youtube.com/watch?v=dQw4w9WgXcQ";
         "git.${shire}".locations."/".return = "301 https://git.${azahi}";
         "bitwarden.${shire}".locations."/".return = "301 https://vaultwarden.${shire}";

Consider giving Nix/NixOS a try! <3