From bb5bf441566f43ce7c883b75515e0f2c5d7cbe05 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Thu, 13 Oct 2022 16:04:56 +0200 Subject: [PATCH] Set meme as default site on nginx --- hosts/architect/nginx.nix | 39 +++++++++++++++++---------------------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/hosts/architect/nginx.nix b/hosts/architect/nginx.nix index e600db3..0777276 100644 --- a/hosts/architect/nginx.nix +++ b/hosts/architect/nginx.nix @@ -8,28 +8,23 @@ 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" = { - # }; - # }; - # }; + virtualHosts."architect.devs.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" = { }; + }; + }; appendConfig = '' worker_processes 24; '';