21 lines
459 B
Nix
21 lines
459 B
Nix
|
{config, ...}: {
|
||
|
services.gitea = {
|
||
|
enable = true;
|
||
|
cookieSecure = true;
|
||
|
disableRegistration = true;
|
||
|
domain = "git.gaze.systems";
|
||
|
rootUrl = "https://git.gaze.systems/";
|
||
|
httpPort = 3001;
|
||
|
};
|
||
|
|
||
|
services.nginx.virtualHosts."git.gaze.systems" = {
|
||
|
enableACME = true;
|
||
|
forceSSL = true;
|
||
|
locations."/".proxyPass = "http://localhost:3001";
|
||
|
};
|
||
|
|
||
|
networking.firewall.allowedTCPPorts = [
|
||
|
config.services.gitea.httpPort
|
||
|
];
|
||
|
}
|