2023-09-23 15:31:06 -06:00
|
|
|
{ config, makeEnable, ... }:
|
|
|
|
makeEnable config "modules.gitea" false {
|
|
|
|
|
|
|
|
services.gitea = {
|
|
|
|
enable = true;
|
|
|
|
lfs.enable = true;
|
|
|
|
settings.server = {
|
|
|
|
DOMAIN = "1896Folsom.duckdns.org";
|
|
|
|
SSH_PORT = 1123;
|
2023-10-01 13:54:34 -06:00
|
|
|
HTTP_PORT = 3001;
|
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;
|
|
|
|
virtualHosts = {
|
2023-10-01 13:44:01 -06:00
|
|
|
"gitea" = {
|
2023-10-01 13:38:10 -06:00
|
|
|
serverName = "1896Folsom.duckdns.org";
|
2023-10-01 13:37:21 -06:00
|
|
|
enableACME = true;
|
2023-10-01 13:50:57 -06:00
|
|
|
forceSSL = true;
|
2023-10-01 13:37:21 -06:00
|
|
|
listen = [{
|
|
|
|
addr = "0.0.0.0";
|
2023-10-01 13:54:34 -06:00
|
|
|
port = 3000;
|
2023-10-01 13:50:57 -06:00
|
|
|
ssl = true;
|
2023-10-01 13:37:21 -06:00
|
|
|
}];
|
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://localhost:3000";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-09-23 15:31:06 -06:00
|
|
|
}
|