diff --git a/modules/devops.nix b/modules/devops.nix index 949ecda..aea6ad8 100644 --- a/modules/devops.nix +++ b/modules/devops.nix @@ -13,6 +13,7 @@ database = { type = "postgres"; passwordFile = "/var/keys/gitea/db"; + socket = "/run/postgresql/.s.PGSQL.5432"; }; cookieSecure = true; disableRegistration = true; diff --git a/modules/webstack.nix b/modules/webstack.nix index fe6a7ca..8c518bb 100644 --- a/modules/webstack.nix +++ b/modules/webstack.nix @@ -108,12 +108,11 @@ # Generated file; do not edit! # TYPE DATABASE USER ADDRESS METHOD local all all trust - host all all 127.0.0.1/32 trust - host all all ::1/128 trust ''; identMap = '' gitea-users gitea gitea ''; + extraConfig = "listen_addresses = ''"; }; # PostgreSQL daily backups @@ -124,12 +123,12 @@ startAt = "*-*-* 05:15:00"; }; - # Miniflux configuration services.miniflux = { enable = true; adminCredentialsFile = "/var/keys/miniflux/admin"; config = { + LISTEN_ADDR = "/run/postgresql/.s.PGSQL.5432"; BASE_URL = "https://coolneng.duckdns.org/miniflux/"; }; };