From 7ba326dc6f74a12b989a9ecad4b1f69f0c965f46 Mon Sep 17 00:00:00 2001 From: cw Date: Sun, 30 Apr 2023 03:02:18 -0500 Subject: [PATCH] Fix gitweb, add https. --- profiles/gitweb.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/profiles/gitweb.nix b/profiles/gitweb.nix index da20c96..2dd0d76 100644 --- a/profiles/gitweb.nix +++ b/profiles/gitweb.nix @@ -3,15 +3,22 @@ let fqdn = "git.${config.networking.fqdn}"; in { - services.nginx.gitweb = { - enable = true; - location = ""; - virtualHost = "${fqdn}"; + services.nginx = { + gitweb = { + enable = true; + location = ""; + virtualHost = "${fqdn}"; + }; + virtualHosts."${fqdn}" = { + enableACME = config.security.acme.acceptTerms; + forceSSL = config.security.acme.acceptTerms; + }; }; # BOILER # PLATE networking.hosts."127.0.0.1" = [ "${fqdn}" ]; # TODO Check perms see if they are g2g. idk about recursive +x + # Rethink this. Ugly. systemd.tmpfiles.rules = [ "d '${config.services.gitweb.projectroot}' 0775 ${config.services.nginx.user} git" "Z '${config.services.gitweb.projectroot}' 0775 ${config.services.nginx.user} git" -- 2.40.1