feat (hosts/mystra/forgejo)!: theming attempt

This commit is contained in:
Henri Saudubray 2026-02-27 14:28:21 +01:00
parent 7d9c3cce20
commit a82926cfcf
Signed by: hms
GPG key ID: 7065F57ED8856128
4 changed files with 38 additions and 1 deletions

View file

@ -1,31 +0,0 @@
{ lib, config, ... }:
let
cfg = config.services.forgejo;
srv = cfg.settings.server;
in
{
services.nginx.virtualHosts."git.henri-saudubray.fr" = {
forceSSL = true;
enableACME = true;
extraConfig = ''
client_max_body_size 512M;
'';
locations."/".proxyPass = "http://localhost:${toString srv.HTTP_PORT}";
};
services.forgejo = {
enable = true;
database.type = "postgres";
lfs.enable = true;
settings = {
server = {
DOMAIN = "git.henri-saudubray.fr";
ROOT_URL = "https://${srv.DOMAIN}/";
HTTP_PORT = 3000;
SSH_PORT = lib.head config.services.openssh.ports;
};
service.DISABLE_REGISTRATION = true;
};
};
}