From 84adc681875042f0d22686e29dbd4359be5fde29 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Fri, 2 Feb 2024 16:37:54 +0100 Subject: Force ssl on cgit --- machines/srv3/cgit.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'machines/srv3') diff --git a/machines/srv3/cgit.nix b/machines/srv3/cgit.nix index 2e8ced3..989e289 100644 --- a/machines/srv3/cgit.nix +++ b/machines/srv3/cgit.nix @@ -47,9 +47,13 @@ in Unit = "git-fetch.service"; }; }; - services.nginx.virtualHosts."${cgitHostname}".locations."=/mylogo.png" = { - alias = "${./baby-yoda.png.comp}"; - }; + services.nginx.virtualHosts."${cgitHostname}" = { + locations."=/mylogo.png" = { + alias = "${./baby-yoda.png.comp}"; + }; + forceSSL = true; + enableACME = true; + }; services.cgit.gitN = { enable = true; package = pkgs.cgit-pink; -- cgit 1.4.1