Update configuration page

This commit is contained in:
Wolfgang Walther
2022-01-08 11:29:20 +01:00
committed by Wolfgang Walther
parent 62726ddcfd
commit 540ef4ad9f
9 changed files with 527 additions and 383 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ PostgREST uses a configuration file to tell it how to connect to the database. C
.. code-block:: ini
db-uri = "postgres://authenticator:mysecretpassword@localhost:5433/postgres"
db-schema = "api"
db-schemas = "api"
db-anon-role = "web_anon"
The configuration file has other :ref:`options <configuration>`, but this is all we need.
+1 -1
View File
@@ -226,7 +226,7 @@ Next update :code:`tutorial.conf` and specify the new function:
# add this line to tutorial.conf
pre-request = "auth.check_token"
db-pre-request = "auth.check_token"
Restart PostgREST for the change to take effect. Next try making a request with our original token and then with the revoked one.