Update configuration page
This commit is contained in:
committed by
Wolfgang Walther
parent
62726ddcfd
commit
540ef4ad9f
+1
-1
@@ -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
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user