Add forgejo

This commit is contained in:
Chandler Swift 2024-11-05 23:47:48 -06:00
parent 8afb236c52
commit 0e4a2c5b9d
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
4 changed files with 26 additions and 0 deletions

View file

@ -7,6 +7,7 @@
./services/factorio.nix
./services/http/index.nix
./services/monitoring.nix
./services/forgejo.nix
];
# Bootloader

19
bert/services/forgejo.nix Normal file
View file

@ -0,0 +1,19 @@
{
services.forgejo = {
enable = true;
settings = {
DEFAULT = {
APP_NAME = "Forgejo: Beyond coding. We Forge."; # TODO
};
server = {
# USE_PROXY_PROTOCOL = true;
DOMAIN = "git.chandlerswift.com";
#SSH_DOMAIN = "git.chandlerswift.com";
ROOT_URL = "https://git.chandlerswift.com/";
HTTP_PORT = 3001;
LANDING_PAGE = "/chandlerswift";
};
service.DISABLE_REGISTRATION = true;
};
};
}

View file

@ -0,0 +1,5 @@
{config, ...}: {
services.caddy.virtualHosts."git.chandlerswift.com".extraConfig = ''
reverse_proxy localhost:${toString config.services.forgejo.settings.server.HTTP_PORT}
'';
}

View file

@ -1,6 +1,7 @@
{
imports = [
./files.chandlerswift.com.nix
./git.chandlerswift.com.nix
./home.chandlerswift.com.nix
./maps.chandlerswift.com.nix
./stjohnscccc.org.nix