dotfiles/nixos/gitea.nix

39 lines
814 B
Nix
Raw Permalink Normal View History

{ config, makeEnable, ... }:
makeEnable config "modules.gitea" false {
services.gitea = {
enable = true;
lfs.enable = true;
2023-12-20 23:02:27 -07:00
dump = {
enable = true;
interval = "23:05";
};
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;
2023-11-16 02:38:57 -07:00
recommendedProxySettings = true;
recommendedGzipSettings = true;
recommendedTlsSettings = true;
virtualHosts = {
2023-11-16 02:26:50 -07:00
"dev.railbird.ai" = {
2023-11-16 01:59:31 -07:00
serverName = "dev.railbird.ai";
enableACME = true;
forceSSL = true;
locations."/" = {
2023-10-01 13:57:05 -06:00
proxyPass = "http://localhost:3001";
};
};
};
};
}