2022-01-13 13:40:18 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
statusPage = true;
|
|
|
|
virtualHosts = {
|
|
|
|
"git.ingolf-wagner.de" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://localhost:${toString config.services.gogs.httpPort}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.gitea = {
|
|
|
|
enable = true;
|
|
|
|
appName = "git.ingolf-wagner.de";
|
|
|
|
cookieSecure = true;
|
|
|
|
disableRegistration = true;
|
|
|
|
domain = "git.ingolf-wagner.de";
|
|
|
|
dump.enable = true;
|
|
|
|
rootUrl = "https://git.ingolf-wagner.de/";
|
|
|
|
settings = {
|
|
|
|
other = {
|
|
|
|
SHOW_FOOTER_VERSION = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-01-15 09:32:59 +01:00
|
|
|
};
|
|
|
|
|
2022-01-17 11:57:52 +01:00
|
|
|
backup.dirs = [ config.services.gitea.dump.backupDir ];
|
2022-01-13 13:40:18 +01:00
|
|
|
}
|