feat(vps): add forgejo

This commit is contained in:
lightly-toasted 2025-10-03 23:58:53 +09:00
parent 78ef47c410
commit b394df67f4
3 changed files with 25 additions and 0 deletions

View file

@ -9,6 +9,11 @@
reverse_proxy http://127.0.0.1:3000
'';
# forgejo
virtualHosts."git.toast.name".extraConfig = ''
reverse_proxy http://127.0.0.1:3001
'';
# vaultwarden
virtualHosts."vps.curl-pence.ts.net".extraConfig = ''
reverse_proxy /vaultwarden/* http://127.0.0.1:8222

View file

@ -5,5 +5,6 @@
./openssh.nix
./zipline.nix
./caddy.nix
./forgejo.nix
];
}

View file

@ -0,0 +1,19 @@
{
services.forgejo = {
enable = true;
settings = {
server = {
HTTP_ADDR = "127.0.0.1";
HTTP_PORT = 3001;
DOMAIN = "git.toast.name";
ROOT_URL = "https://git.toast.name/";
LANDING_PAGE = "explore";
};
service.DISABLE_REGISTRATION = true;
actions = {
ENABLED = true;
DEFAULT_ACTIONS_URL = "github";
};
};
};
}