1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-31 12:07:48 +00:00

Update postgres auth map

This commit is contained in:
RGBCube 2024-04-30 12:56:07 +03:00
parent 1f4056f357
commit 3ef7f8aa49
No known key found for this signature in database

View file

@ -27,13 +27,12 @@ in systemConfiguration {
authentication = mkOverride 10 '' authentication = mkOverride 10 ''
# Type Database DBUser Authentication IdentMap # Type Database DBUser Authentication IdentMap
local all @wheel,root,postgres trust
local sameuser all peer map=superuser_map local sameuser all peer map=superuser_map
''; '';
identMap = '' identMap = ''
# Map System DBUser # Map System DBUser
superuser_map root ^(.*)$
superuser_map postgres ^(.*)$
superuser_map /^(.*)$ \1 superuser_map /^(.*)$ \1
''; '';