services: update postgres auth

This commit is contained in:
Kabbone 2022-12-27 21:15:04 +01:00
parent 1c627cf0aa
commit ae3c83c499
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY
2 changed files with 9 additions and 9 deletions

View File

@ -80,7 +80,7 @@
firewall = {
enable = true;
allowedUDPPorts = [ ];
allowedTCPPorts = [ 80 443 8448 ];
allowedTCPPorts = [ 80 443 ];
};
};

View File

@ -22,13 +22,13 @@
};
authentication = pkgs.lib.mkOverride 14 ''
local all postgres peer
host giteadb gitea samehost scram-sha-256
host nextclouddb nextcloud samehost scram-sha-256
host synapsedb synapse samehost scram-sha-256
host whatsappdb mautrixwa samehost scram-sha-256
host telegramdb mautrixtele samehost scram-sha-256
host signaldb mautrixsignal samehost scram-sha-256
host keycloakdb keycloak samehost scram-sha-256
local giteadb gitea scram-sha-256
local nextclouddb nextcloud scram-sha-256
local synapsedb synapse scram-sha-256
local whatsappdb mautrixwa scram-sha-256
local telegramdb mautrixtele scram-sha-256
local signaldb mautrixsignal scram-sha-256
local keycloakdb keycloak scram-sha-256
'';
initialScript = config.age.secrets."services/postgresql/initScript.sql".path;
ensureDatabases = [