server-configs/machines/gerd/services/forgejo.nix
2024-08-08 14:16:04 +02:00

32 lines
627 B
Nix

{ config, ... }:
{
# https://wiki.nixos.org/wiki/Forgejo
services.forgejo = {
enable = true;
stateDir = config.mine.zfsMounts."rpool/safe/svcs/forgejo";
settings = {
server = {
DOMAIN = "git.fricloud.dk";
ROOT_URL = "https://git.fricloud.dk";
HTTPPORT = 3000;
};
service.DISABLE_REGISTRATION = true;
};
};
services.nginx = {
virtualHosts."git.fricloud.dk" = {
forceSSL = true;
enableACME = true;
extraConfig = ''
client_max_body_size 512M;
'';
locations."/".proxyPass = "http://localhost:3000";
};
};
}