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}" ];