diff --git a/docs/configuration/users.toml/users.md b/docs/configuration/users.toml/users.md index 4dd75f39..70c16f2c 100644 --- a/docs/configuration/users.toml/users.md +++ b/docs/configuration/users.toml/users.md @@ -4,7 +4,7 @@ icon: material/account-key # Users configuration -This configuration controls which users are allowed to connect to PgDog. This is a TOML list so for each user, add a `[[users]]` section to `users.toml`. For example: +This configuration controls which users are allowed to connect to PgDog. Each regular user has a `[[users]]` section in `users.toml`. For example: === "users.toml" ```toml @@ -176,3 +176,14 @@ A `schema_admin` database user is required for following features: - [Sharding schema management](../../features/sharding/schema_management/manager.md) - [Resharding](../../features/sharding/resharding/index.md#schema-admin) + +## Admin database settings + +`users.toml` can also contain an `[admin]` section. This is useful when the admin password should be kept separately from `pgdog.toml`. + +```toml +[admin] +password = "hunter2" +``` + +When present, this section replaces the `[admin]` configuration in [`pgdog.toml`](../pgdog.toml/admin.md). It accepts the same `name`, `user`, and `password` settings. Any omitted settings use their [default values](../pgdog.toml/admin.md), rather than values from `pgdog.toml`.