nixos-selfhost/forgejo.nix

37 lines
620 B
Nix
Raw Normal View History

2024-03-01 22:15:55 +01:00
{ config, ... }:
let
2024-03-02 08:04:41 +01:00
domain = "git.sondell.org";
2024-03-01 22:15:55 +01:00
# derp = "hi";
in
{
services.forgejo = {
enable = true;
settings = {
service = {
# DISABLE_REGISTRATION = true;
};
server = {
ROOT_URL = "https://${domain}/";
LANDING_PAGE = "explore";
};
};
};
services.nginx = {
appendHttpConfig = ''
map $uri $forgejo_access_log {
default 1;
/api/actions/runner.v1.RunnerService/FetchTask 0;
}
'';
};
services.nginx.virtualHosts.${domain} = {
locations."/" = {
proxyPass = "http://localhost:3000/";
};
};
}