2023-09-23 15:31:06 -06:00
|
|
|
{ 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";
|
|
|
|
};
|
2023-09-23 15:31:06 -06:00
|
|
|
settings.server = {
|
2023-11-16 02:05:10 -07:00
|
|
|
DOMAIN = "dev.railbird.ai";
|
2023-09-23 15:31:06 -06:00
|
|
|
SSH_PORT = 1123;
|
2023-10-01 13:54:34 -06:00
|
|
|
HTTP_PORT = 3001;
|
2023-11-16 02:05:10 -07:00
|
|
|
ROOT_URL = "https://dev.railbird.ai";
|
2024-07-20 01:18:56 -06:00
|
|
|
DISABLE_REGISTRATION = true;
|
2023-09-23 15:31:06 -06:00
|
|
|
};
|
2023-09-25 03:17:13 -06:00
|
|
|
settings.actions = {
|
|
|
|
ENABLED = true;
|
|
|
|
};
|
2023-09-23 15:31:06 -06:00
|
|
|
};
|
2023-10-01 13:37:21 -06:00
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
2023-11-16 02:38:57 -07:00
|
|
|
recommendedProxySettings = true;
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedTlsSettings = true;
|
2023-10-01 13:37:21 -06:00
|
|
|
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;
|
2023-10-01 13:37:21 -06:00
|
|
|
locations."/" = {
|
2023-10-01 13:57:05 -06:00
|
|
|
proxyPass = "http://localhost:3001";
|
2023-10-01 13:37:21 -06:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-09-23 15:31:06 -06:00
|
|
|
}
|