Skip to content

Commit

Permalink
host(koumakan): postgres: force scram-sha-256
Browse files Browse the repository at this point in the history
  • Loading branch information
soopyc committed Jul 24, 2024
1 parent ca69620 commit e7f3886
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions systems/koumakan/services/databases/postgresql.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@
package = pkgs.postgresql_15;
dataDir = "/var/lib/postgresql/15";

authentication = ''
authentication = lib.mkForce ''
# unix socket connection
local all all peer
# local ipv4/6 tcp connection
host all all 127.0.0.1/32 scram-sha-256
host all all ::1/128 scram-sha-256
# world (encrypted) tcp traffic
hostssl all all all scram-sha-256
'';

settings = let
Expand Down

0 comments on commit e7f3886

Please sign in to comment.