diff --git a/config/instance.nix b/config/instance.nix index d154ade..fc5dcb0 100755 --- a/config/instance.nix +++ b/config/instance.nix @@ -355,6 +355,7 @@ in { }; ports = { port0 = 3000; + port1 = 5432; }; ssl = { cert = "${sslPath}/${wikiSubdomain}.${domain1}/fullchain.pem"; diff --git a/nixos/modules/services/wiki.nix b/nixos/modules/services/wiki.nix index ad50c11..83e9738 100755 --- a/nixos/modules/services/wiki.nix +++ b/nixos/modules/services/wiki.nix @@ -7,7 +7,7 @@ inherit (flake.config.people.user.${user0}) domain; inherit (flake.config.system.device) server wildcard; inherit (flake.config.service.instance.wiki) paths ports subdomain ssl sops name; - localhost = wildcard.ip.address1; + localhost = wildcard.ip.address0; host = "${subdomain}.${domain.url1}"; in { services = { @@ -82,6 +82,7 @@ in { firewall = { allowedTCPPorts = [ ports.port0 + ports.port1 ]; }; };