From ce2f6a4546e635f8124c7fc20e4b2b960cca7a27 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Wed, 14 Aug 2024 21:28:07 +0200 Subject: [PATCH] bekkalokk/gitea-web: host pages --- .../services/gitea/web-secret-provider/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hosts/bekkalokk/services/gitea/web-secret-provider/default.nix b/hosts/bekkalokk/services/gitea/web-secret-provider/default.nix index 4be1987..62c4f1f 100644 --- a/hosts/bekkalokk/services/gitea/web-secret-provider/default.nix +++ b/hosts/bekkalokk/services/gitea/web-secret-provider/default.nix @@ -143,4 +143,11 @@ in }; services.openssh.authorizedKeysFiles = map (org: "/var/lib/gitea-web/authorized_keys.d/${org}") organizations; + + services.nginx.virtualHosts."pages.pvv.ntnu.no" = { + kTLS = true; + forceSSL = true; + enableACME = true; + root = "/var/lib/gitea-web/web"; + }; }