From 8597d6445fac660f3e2c5a7d19e0b306674b0c46 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Mon, 9 Aug 2021 17:39:45 +0200 Subject: [PATCH] 404 page --- hosts/architect/nginx.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/hosts/architect/nginx.nix b/hosts/architect/nginx.nix index a1e083f..e37f70b 100644 --- a/hosts/architect/nginx.nix +++ b/hosts/architect/nginx.nix @@ -10,6 +10,29 @@ recommendedOptimisation = true; recommendedProxySettings = true; recommendedTlsSettings = true; + + virtualHosts."giugl.io" = { + default = true; + enableACME = true; + addSSL = true; + root = "/var/lib/nginx/error_pages"; + extraConfig = "error_page 404 /index.htm;"; + + locations = { + "/" = { + return = "404"; + }; + + "/index.htm" = { + }; + + "/style.css" = { + }; + + "/wat.jpg" = { + }; + }; + }; }; users.groups.acme.members = [ "nginx" ];