From eb73fb94264d486ff1be0ea756aad3708f21b065 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Mon, 29 Jun 2020 00:54:59 +0200 Subject: machines/profpatsch/legosi: serve the static website from nginx --- machines/profpatsch/legosi.nix | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/machines/profpatsch/legosi.nix b/machines/profpatsch/legosi.nix index 6460c4ba..eb1dc321 100644 --- a/machines/profpatsch/legosi.nix +++ b/machines/profpatsch/legosi.nix @@ -63,17 +63,20 @@ in { enable = true; }; - # services.nginx = { - # enable = true; - # virtualHosts.${"profpatsch.de"} = { - # forceSSL = true; - # enableACME = true; - # locations."/" = { - # index = "index.html"; - # }; - # serverAliases = [ "lojbanistan.de" ]; - # }; - # }; + security.acme.acceptTerms = true; + security.acme.email = "mail@profpatsch.de"; + + services.nginx = { + enable = true; + virtualHosts.${"profpatsch.de"} = { + forceSSL = true; + enableACME = true; + locations."/" = { + index = "index.html"; + root = pkgs.vuizvui.profpatsch.websiteStatic; + }; + }; + }; }; } -- cgit 1.4.1