server-configuration/services/forgejo.nix
baritone 2fa176db17 bunch of stuff
zero downtime website deployment

forgejo runners

media folder stuff
2025-04-01 15:50:31 +02:00

50 lines
1,006 B
Nix
Executable file

{...}: let
host = "127.0.0.1";
port = 6969;
in {
imports = [
./nginx.nix
./gitea-actions-runner.nix
];
services.forgejo = {
enable = true;
lfs.enable = true;
database.type = "postgres";
settings = {
DEFAULT = {
APP_NAME = "An idiot admires complexity. A genius admires simplicity";
};
repository = {
ENABLE_PUSH_CREATE_USER = true;
};
server = {
DOMAIN = "git.spoodythe.one";
HTTP_PORT = port;
ROOT_URL = "https://git.spoodythe.one";
};
service.DISABLE_REGISTRATION = true;
actions = {
ENABLED = true;
DEFAULT_ACTIONS_URL = "https://code.forgejo.org";
};
federation.ENABLED = false;
};
};
services.nginx.virtualHosts."git.spoodythe.one" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://${host}:${toString port}";
extraConfig = ''
client_max_body_size 100M;
'';
};
};
}