This commit is contained in:
ari committed 2025-08-04 11:24:08 -04:00
1 parent db27724200
commit 671d5e8043
1 file changed
+17
+17
View File
@@ -5,11 +5,15 @@ let
audiobookshelf = 8000;
nixServe = 5000;
dockerRegistry = 5001;
gitea.http = 3000;
gitea.ssh = 2222;
};
openPorts = [
ports.nixServe
ports.dockerRegistry
ports.audiobookshelf
ports.gitea.ssh
ports.gitea.http
22
];
in
@@ -56,6 +60,19 @@ in
listenAddress = "0.0.0.0";
enableDelete = true;
};
services.gitea = {
enable = true;
appName = "Sosnovsky gitea";
stateDir = "/var/lib/sosnovsky/gitea";
settings = {
server = {
DOMAIN = "minipc1.lab.internal";
HTTP_PORT = ports.gitea.http;
SSH_PORT = ports.gitea.ssh;
DISABLE_REGISTRATION = true;
};
};
};
# Firewall
networking.firewall.allowedUDPPorts = openPorts;
networking.firewall.allowedTCPPorts = openPorts;