stuff
This commit is contained in:
@@ -104,12 +104,17 @@ in
|
||||
ensureDatabases = [ "root" ] ++ map (d: d.name) databases;
|
||||
settings.listen_addresses = lib.mkForce "0.0.0.0";
|
||||
identMap = ''
|
||||
admins "${config.users.users.postgres.name}" /.*/
|
||||
admins root /.*/
|
||||
login-as postgres postgres
|
||||
login-as root postgres
|
||||
login-as root root
|
||||
login-as postgres gallerygrab
|
||||
login-as root gallerygrab
|
||||
login-as shelvacu gallerygrab
|
||||
'';
|
||||
authentication = lib.mkForce ''
|
||||
local all all peer map=admins
|
||||
local all postgres peer
|
||||
${authText}
|
||||
local all all peer map=login-as
|
||||
'';
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user