nixos-config/machines/orbi/service-forgejo.nix

44 lines
902 B
Nix
Raw Normal View History

2024-08-29 03:26:04 +02:00
{
config,
lib,
pkgs,
...
}:
2023-12-09 17:15:50 +01:00
{
healthchecks.http.forgejjo = {
2024-09-16 02:06:03 +02:00
url = "https://git.ingolf-wagner.de/explore/repos";
expectedContent = "palo/nixos-config";
};
2023-12-09 17:15:50 +01:00
services.nginx = {
enable = true;
statusPage = true;
virtualHosts = {
"git.ingolf-wagner.de" = {
forceSSL = true;
enableACME = true;
locations."/" = {
2024-05-10 23:18:04 +02:00
proxyPass = "http://localhost:${toString config.services.forgejo.settings.server.HTTP_PORT}";
2023-12-09 17:15:50 +01:00
};
};
};
};
2024-04-12 23:09:40 +02:00
services.forgejo = {
2023-12-09 17:15:50 +01:00
enable = true;
settings = {
server.ROOT_URL = "https://git.ingolf-wagner.de/";
server.DOMAIN = "git.ingolf-wagner.de";
2024-05-08 22:07:30 +02:00
DEFAULT.APP_NAME = "git.ingolf-wagner.de";
2023-12-09 17:15:50 +01:00
service.DISABLE_REGISTRATION = true;
session.COOKIE_SECURE = true;
log.LEVEL = "Warn";
other = {
SHOW_FOOTER_VERSION = false;
};
};
};
}