From fc0e4f6c52ba0fe27b45ffa1fecf41cc4cfe6d07 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Wed, 12 Jul 2023 01:39:50 +0200 Subject: [PATCH] tsuki/nginx/www: real website dead, add temporary website --- hosts/tsuki/services/nginx/default.nix | 37 +++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/hosts/tsuki/services/nginx/default.nix b/hosts/tsuki/services/nginx/default.nix index 67e5d7f..ecb485f 100644 --- a/hosts/tsuki/services/nginx/default.nix +++ b/hosts/tsuki/services/nginx/default.nix @@ -96,7 +96,42 @@ }; } (proxy ["plex"] "http://localhost:${s ports.plex}" {}) - (host ["www"] { root = "${inputs.website.packages.${pkgs.system}.default}/"; }) + # (host ["www"] { root = "${inputs.website.packages.${pkgs.system}.default}/"; }) + (host ["www"] { + locations."/" = { + tryFiles = "$uri /index.html"; + root = pkgs.writeTextDir "index.html" '' + + + + + + Nani.wtf + + + +
+

Nani.wtf

+

Down for maintenance

+

Will be back soon!

+ + git.nani.wtf +
+ + + ''; + }; + }) (host ["matrix"] { enableACME = lib.mkForce false; locations."/_synapse".proxyPass = "http://$synapse_backend";