postgres: trust -> scram-sha-256 for everything except localhost

This commit is contained in:
Markus Schmidl 2023-06-01 20:26:06 +02:00
parent 020e0d3804
commit 194ce476cf
2 changed files with 3 additions and 3 deletions

View File

@ -20,8 +20,8 @@
local all all trust
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
host tlms grafana ${senpai-ip}/32 trust
host borzoi grafana ${senpai-ip}/32 trust
host tlms grafana ${senpai-ip}/32 scram-sha-256
host borzoi grafana ${senpai-ip}/32 scram-sha-256
'';
package = pkgs.postgresql_14;
ensureDatabases = [ "borzoi" ];

View File

@ -12,7 +12,7 @@
local all all trust
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
host tlms grafana ${senpai-ip}/32 trust
host tlms grafana ${senpai-ip}/32 scram-sha-256
'';
package = pkgs.postgresql_14;
ensureDatabases = [ "tlms" ];