diff options
author | Patryk Niedźwiedziński <patryk@niedzwiedzinski.cyou> | 2024-02-02 16:37:54 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <patryk@niedzwiedzinski.cyou> | 2024-02-02 16:37:54 +0100 |
commit | 84adc681875042f0d22686e29dbd4359be5fde29 (patch) | |
tree | 1ccc8b963ff020b5ddb893c6fcb63f30fe2d287b /machines/srv3 | |
parent | 11ff8bf741b10ebe38f7c1107912d747c619a2c4 (diff) | |
download | dots-84adc681875042f0d22686e29dbd4359be5fde29.tar.gz dots-84adc681875042f0d22686e29dbd4359be5fde29.zip |
Force ssl on cgit
Diffstat (limited to 'machines/srv3')
-rw-r--r-- | machines/srv3/cgit.nix | 10 |
1 files changed, 7 insertions, 3 deletions
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; |