From c8ccb334a717ac7368ebb972c532f808a5c04678 Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Fri, 10 Oct 2025 19:02:07 -0400 Subject: enable ssl --- modules/git/cgit.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'modules/git/cgit.nix') 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"; }; } -- cgit v1.2.3