{ config, lib, pkgs, ... }: { healthchecks.http.forgejjo = { url = "https://git.ingolf-wagner.de/explore/repos"; expectedContent = "palo/nixos-config"; }; services.nginx = { enable = true; statusPage = true; virtualHosts = { "git.ingolf-wagner.de" = { forceSSL = true; enableACME = true; locations."/" = { proxyPass = "http://localhost:${toString config.services.forgejo.settings.server.HTTP_PORT}"; }; }; }; }; services.forgejo = { enable = true; package = pkgs.forgejo; settings = { server.ROOT_URL = "https://git.ingolf-wagner.de/"; server.DOMAIN = "git.ingolf-wagner.de"; DEFAULT.APP_NAME = "git.ingolf-wagner.de"; service.DISABLE_REGISTRATION = true; session.COOKIE_SECURE = true; log.LEVEL = "Warn"; other = { SHOW_FOOTER_VERSION = false; }; }; }; }