nixos-config/legacy/robi/gitea.nix

41 lines
875 B
Nix
Raw Normal View History

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}";
};
};
};
};
2024-02-24 03:16:22 +01:00
# todo move to forgejo
2022-01-13 13:40:18 +01:00
services.gitea = {
enable = true;
appName = "git.ingolf-wagner.de";
2024-02-24 03:16:22 +01:00
package = pkgs.forgejo;
2023-01-07 21:11:25 +01:00
#cookieSecure = true;
#disableRegistration = true;
2022-01-13 13:40:18 +01:00
settings = {
2023-07-01 17:34:23 +02:00
server.ROOT_URL = "https://git.ingolf-wagner.de/";
server.DOMAIN = "git.ingolf-wagner.de";
2023-01-07 21:11:25 +01:00
service.DISABLE_REGISTRATION = true;
session.COOKIE_SECURE = true;
2023-02-08 00:19:09 +01:00
log.LEVEL = "Warn";
2022-01-13 13:40:18 +01:00
other = {
SHOW_FOOTER_VERSION = false;
};
};
2022-01-15 09:32:59 +01:00
};
2022-01-23 21:14:24 +01:00
backup.dirs = [ "/var/lib/gitea" ];
2023-06-21 08:34:43 +02:00
2022-01-13 13:40:18 +01:00
}