mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-10-04 07:25:40 +00:00
feat(vps): add forgejo
This commit is contained in:
parent
78ef47c410
commit
b394df67f4
3 changed files with 25 additions and 0 deletions
|
@ -9,6 +9,11 @@
|
||||||
reverse_proxy http://127.0.0.1:3000
|
reverse_proxy http://127.0.0.1:3000
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# forgejo
|
||||||
|
virtualHosts."git.toast.name".extraConfig = ''
|
||||||
|
reverse_proxy http://127.0.0.1:3001
|
||||||
|
'';
|
||||||
|
|
||||||
# vaultwarden
|
# vaultwarden
|
||||||
virtualHosts."vps.curl-pence.ts.net".extraConfig = ''
|
virtualHosts."vps.curl-pence.ts.net".extraConfig = ''
|
||||||
reverse_proxy /vaultwarden/* http://127.0.0.1:8222
|
reverse_proxy /vaultwarden/* http://127.0.0.1:8222
|
||||||
|
|
|
@ -5,5 +5,6 @@
|
||||||
./openssh.nix
|
./openssh.nix
|
||||||
./zipline.nix
|
./zipline.nix
|
||||||
./caddy.nix
|
./caddy.nix
|
||||||
|
./forgejo.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
19
hosts/vps/modules/services/forgejo.nix
Normal file
19
hosts/vps/modules/services/forgejo.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue