dotfiles/nixos/gitea.nix

40 lines
849 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";
2024-07-20 01:18:56 -06:00
DISABLE_REGISTRATION = true;
};
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";
};
};
};
};
}