Add gitea

This commit is contained in:
2025-11-29 17:48:26 +01:00
parent eed762c5ca
commit b04bfaade8
2 changed files with 24 additions and 0 deletions

View File

@@ -18,6 +18,7 @@
../../server-modules/glance.nix ../../server-modules/glance.nix
../../server-modules/radicale.nix ../../server-modules/radicale.nix
../../server-modules/actual-budget.nix ../../server-modules/actual-budget.nix
../../server-modules/gitea.nix
./disk-config.nix ./disk-config.nix
./hardware-configuration.nix ./hardware-configuration.nix

23
server-modules/gitea.nix Normal file
View File

@@ -0,0 +1,23 @@
{ config, pkgs, ... }:
{
services.gitea = {
enable = true;
appName = "Git Server"; # A name for your Gitea instance
settings = {
server = {
PROTOCOL = "http"; # Use http for now, caddy will handle https
DOMAIN = "git.jelles.net";
ROOT_URL = "https://git.jelles.net/";
HTTP_ADDR = "127.0.0.1";
HTTP_PORT = 3001;
DISABLE_SSH = true; # Disable the built-in SSH server, use HTTPS for cloning
};
service = {
DISABLE_REGISTRATION = true; # Consider enabling for public instances
};
};
};
services.caddy.virtualHosts."git.jelles.net".extraConfig = "reverse_proxy :3001";
}