about summary refs log tree commit diff
path: root/nixosConfigurations
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2023-10-25 01:57:50 +0300
committerAzat Bahawi <azat@bahawi.net>2023-10-25 01:57:50 +0300
commit0741650f125d2877d0ab0d9da15d6d3d229f837d (patch)
tree499f32a421e5d5d035fd22908ec2b73fe62f8e71 /nixosConfigurations
parent2023-10-21 (diff)
2023-10-25
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