feat(forgejo): why are we here? just to suffer?

This commit is contained in:
Kat Inskip 2025-10-13 07:55:06 -07:00
parent f108a20f26
commit 69d80bde5b
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
8 changed files with 211 additions and 9 deletions

View file

@ -0,0 +1,34 @@
{config, ...}: let
domain = "git.kittywit.ch";
cfg = config.services.forgejo;
in {
services.forgejo = {
enable = true;
settings = {
server = {
DOMAIN = domain;
ROOT_URL = "https://${domain}";
};
service = {
DISABLE_REGISTRATION = true;
};
actions = {
ENABLED = true;
DEFAULT_ACTIONS_URL = "github";
};
};
};
services.nginx.virtualHosts.${domain} = {
enableACME = true;
forceSSL = true;
extraConfig = ''
client_max_body_size 512M;
'';
locations = {
"/" = {
proxyPass = "http://localhost:${toString cfg.settings.server.HTTP_PORT}";
proxyWebsockets = true;
};
};
};
}