system/services/forgejo: enable on ipv4
This commit is contained in:
parent
6c75a3644f
commit
006daa6ebc
1 changed files with 2 additions and 3 deletions
|
@ -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}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue