This commit is contained in:
Ellie 2026-02-15 15:42:17 -08:00
parent b8402a9049
commit cfb31d3b01
4 changed files with 30 additions and 5 deletions

16
services/forgejo.nix Normal file
View file

@ -0,0 +1,16 @@
{ ... }:
{
networking.firewall.interfaces.wg0.allowedTCPPorts = [ 3000 ];
services.forgejo = {
enable = true;
settings.service.DISABLE_REGISTRATION = true;
settings.server = {
DOMAIN = "forgejo.ellie.town";
ROOT_URL = "https://forgejo.ellie.town/";
HTTP_ADDR = "10.10.0.2";
HTTP_PORT = 3000;
};
};
}

View file

@ -69,6 +69,14 @@
# };
# };
virtualHosts."forgejo.ellie.town" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://10.10.0.2:3000";
};
};
virtualHosts."irc.ellie.town" = {
enableACME = true;
forceSSL = true;