enable gitea

This commit is contained in:
2024-07-28 15:04:17 +05:30
parent 39d774d605
commit ce75d3e6aa
2 changed files with 27 additions and 0 deletions

26
modules/nixos/gitea.nix Normal file
View File

@ -0,0 +1,26 @@
{lib, ...}: {
services = {
gitea = {
enable = true;
settings = {
service.DISABLE_REGISTRATION = true;
server.DOMAIN = "git.0xtux.com";
};
};
nginx = {
enable = lib.mkForce true;
virtualHosts = {
"git.0xtux.com" = {
forceSSL = true;
enableACME = true;
locations = {
"/" = {
proxyPass = "http://localhost:3000";
};
};
};
};
};
};
}