system/services/forgejo: enable on ipv4

This commit is contained in:
Anthony Rodriguez 2024-10-23 17:35:17 +02:00
parent 6c75a3644f
commit 006daa6ebc
Signed by: nezia
GPG key ID: EE3BE97C040A86CE

View file

@ -1,6 +1,5 @@
{
config,
lib,
pkgs,
...
}: let
@ -21,7 +20,7 @@ in {
DOMAIN = "git.nezia.dev";
HTTP_PORT = 1849;
ROOT_URL = "https://${srv.DOMAIN}/";
HTTP_ADDR = "::1";
HTTP_ADDR = "localhost";
};
service = {
DISABLE_REGISTRATION = true;
@ -35,7 +34,7 @@ in {
caddy = {
enable = true;
virtualHosts."git.nezia.dev".extraConfig = ''
reverse_proxy * [::1]:${toString srv.HTTP_PORT}
reverse_proxy * localhost:${toString srv.HTTP_PORT}
'';
};
};