server-configs/machines/gerd/services/forgejo.nix

33 lines
627 B
Nix
Raw Normal View History

2024-08-08 12:16:04 +00:00
{ 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";
};
};
}