Files
tawm/modules/nixos/gitea.nix
2024-07-29 21:32:34 +05:30

30 lines
568 B
Nix

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