nixos/postgresql: fix inaccurate docs for authentication (#97622)
* nixos/postgresql: fix inaccurate docs for authentication We actually use peer authentication, then md5 based authentication. trust is not used. * Use a link for mkForce docs Co-authored-by: aszlig <aszlig@redmoonstudios.org> Co-authored-by: lf- <lf-@users.noreply.github.com> Co-authored-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
0544a7f672
commit
2df221ec8a
@ -69,11 +69,16 @@ in
|
|||||||
type = types.lines;
|
type = types.lines;
|
||||||
default = "";
|
default = "";
|
||||||
description = ''
|
description = ''
|
||||||
Defines how users authenticate themselves to the server. By
|
Defines how users authenticate themselves to the server. See the
|
||||||
default, "trust" access to local users will always be granted
|
<link xlink:href="https://www.postgresql.org/docs/current/auth-pg-hba-conf.html">
|
||||||
along with any other custom options. If you do not want this,
|
PostgreSQL documentation for pg_hba.conf</link>
|
||||||
set this option using "lib.mkForce" to override this
|
for details on the expected format of this option. By default,
|
||||||
behaviour.
|
peer based authentication will be used for users connecting
|
||||||
|
via the Unix socket, and md5 password authentication will be
|
||||||
|
used for users connecting via TCP. Any added rules will be
|
||||||
|
inserted above the default rules. If you'd like to replace the
|
||||||
|
default rules entirely, you can use <function>lib.mkForce</function> in your
|
||||||
|
module.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user