Host forgejo on sisko

And runner on `picard`
This commit is contained in:
Andrea Ciceri 2024-02-11 15:40:02 +01:00
parent 7f3441fc76
commit a088e336dc
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
8 changed files with 113 additions and 6 deletions

View file

@ -0,0 +1,44 @@
{
config,
pkgs,
...
}: {
services.forgejo = {
enable = true;
stateDir = "/mnt/hd/forgejo";
settings = {
DEFAULT = {
RUN_MODE = "dev";
APP_NAME = "git.aciceri.dev";
};
session.COOKIE_SECURE = true;
service.DISABLE_REGISTRATION = true;
server = {
HTTP_PORT = 3002;
ROOT_URL = "https://git.aciceri.dev";
};
other = {
SHOW_FOOTER_VERSION = false;
};
};
dump.enable = true;
};
systemd.tmpfiles.rules = [
"d ${config.services.forgejo.stateDir} 770 forgejo forgejo"
];
backup.paths = [
config.services.forgejo.stateDir
];
imports = [../nginx-base];
services.nginx.virtualHosts = {
"git.aciceri.dev" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://127.0.0.1:${builtins.toString config.services.forgejo.settings.server.HTTP_PORT}";
};
};
}