From 81035289f7d2de083903095a09e873b7dead2492 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Mon, 6 Apr 2026 21:57:47 +0300 Subject: [PATCH] enable gitea and give it a subdomain --- configuration.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/configuration.nix b/configuration.nix index e67daef..45c6e0d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -54,6 +54,10 @@ in Defaults timestamp_timeout=120 ''; + services.gitea = { + enable = true; + }; + services.logind.settings.Login = { HandleLidSwitch = "ignore"; }; @@ -140,6 +144,18 @@ in }; }; }; + "git.${domainName}" = { + forceSSL = true; + useACMEHost = "${domainName}"; + locations = { + "/" = { + proxyPass = "http://localhost:3000"; + }; + "/.well-known/acme-challenge" = { + root = "/var/lib/acme/.challenges"; + }; + }; + }; }; }; security.acme = { @@ -151,6 +167,7 @@ in webroot = "/var/lib/acme/.challenges"; group = config.services.nginx.group; extraDomainNames = [ + "git.${domainName}" "jellyfin.${domainName}" "www.${domainName}" ];