From 1c15d3d35bed8a36ebc31522830930fda0a77e6c Mon Sep 17 00:00:00 2001 From: steve-chavez Date: Sat, 27 May 2023 22:35:24 -0500 Subject: [PATCH] remove note and put it at the start --- docs/references/configuration.rst | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/references/configuration.rst b/docs/references/configuration.rst index 0f9ae8911..440ada5d2 100644 --- a/docs/references/configuration.rst +++ b/docs/references/configuration.rst @@ -3,7 +3,9 @@ Configuration ############# -Without configuration, PostgREST won't be able to serve requests. At the minimum it needs either :ref:`a role to serve anonymous requests with ` - or :ref:`a secret to use for JWT authentication `. Config parameters can be provided via :ref:`file_config`, via :ref:`env_variables_config` or through :ref:`in_db_config`. +Config parameters can be provided via :ref:`file_config`, :ref:`env_variables_config` or :ref:`in_db_config`. Using :ref:`config_reloading` you can modify the parameters without restarting the server. + +Without configuration, PostgREST won't be able to serve requests. At the minimum it needs either :ref:`a role to serve anonymous requests with ` - or :ref:`a secret to use for JWT authentication `. To connect to a database it uses a `libpq connection string `_. The connection string can be set in the configuration file or via environment variable or can be read from an external file. See :ref:`db-uri` for details. Any parameter that is not set in the connection string is read from `libpq environment variables `_. The default connection string is ``postgresql://``, which reads **all** parameters from the environment. @@ -24,10 +26,6 @@ PostgREST can read a config file. There is no predefined location for this file, ./postgrest /path/to/postgrest.conf -.. note:: - - Configuration can be reloaded without restarting the server. See :ref:`config_reloading`. - The configuration file must contain a set of key value pairs: .. code::