From 0741650f125d2877d0ab0d9da15d6d3d229f837d Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Wed, 25 Oct 2023 01:57:50 +0300 Subject: 2023-10-25 --- nixosConfigurations/manwe/webserver.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'nixosConfigurations/manwe/webserver.nix') 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}"; -- cgit 1.4.1