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