dotfiles/nixos/gitea.nix

36 lines
711 B
Nix
Raw Normal View History

{ config, makeEnable, ... }:
makeEnable config "modules.gitea" false {
services.gitea = {
enable = true;
lfs.enable = true;
settings.server = {
DOMAIN = "dev.railbird.ai";
SSH_PORT = 1123;
HTTP_PORT = 3001;
ROOT_URL = "https://dev.railbird.ai";
};
settings.actions = {
ENABLED = true;
};
};
services.nginx = {
enable = true;
virtualHosts = {
"gitea" = {
2023-11-16 01:59:31 -07:00
serverName = "dev.railbird.ai";
enableACME = true;
forceSSL = true;
listen = [{
addr = "0.0.0.0";
2023-10-01 13:50:57 -06:00
ssl = true;
}];
locations."/" = {
2023-10-01 13:57:05 -06:00
proxyPass = "http://localhost:3001";
};
};
};
};
}