From: cw Date: Sun, 30 Apr 2023 08:02:18 +0000 (-0500) Subject: Fix gitweb, add https. X-Git-Url: https://git.kernelpanic.cafe/?p=MarigoldOS%2F.git;a=commitdiff_plain;h=7ba326dc6f74a12b989a9ecad4b1f69f0c965f46 Fix gitweb, add https. --- 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"