diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-10 19:02:07 -0400 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-10 19:02:07 -0400 |
commit | c8ccb334a717ac7368ebb972c532f808a5c04678 (patch) | |
tree | ff07faf1e8cd0077756727d579861e03ac53b4d6 | |
parent | 4e5f56a240596f0c626bdbc2d26ed08d0624092f (diff) |
enable ssl
-rw-r--r-- | modules/git/cgit.nix | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/modules/git/cgit.nix b/modules/git/cgit.nix index 443b599..2c9ddc6 100644 --- a/modules/git/cgit.nix +++ b/modules/git/cgit.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, pkgs, lib, ... }: let repositoryPath = "/home/compromyse"; @@ -18,7 +18,6 @@ in { settings = { root-title = "compromyse: CGIT"; root-desc = "Compromyse's Git Repositories"; - enable-http-clone = true; enable-commit-graph = true; enable-follow-links = true; @@ -38,6 +37,15 @@ in { "mimetype.png" = "image/png"; "mimetype.svg" = "image/svg+xml"; }; - nginx.virtualHost = "git.compromyse.xyz"; + }; + + services.nginx.virtualHosts."git.compromyse.xyz" = { + forceSSL = true; + enableACME = true; + }; + + security.acme = { + acceptTerms = true; + defaults.email = "raghus2247@gmail.com"; }; } |