Skip to content

Commit 4de1a84

Browse files
Fix typos and errors README.rst
It's not `AETOS_AUTH_TOKENS` but `AETOS_AUTH_TOKENLIST`
1 parent 2b97d58 commit 4de1a84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: README.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ then, add the app to `settings.py`:
2424
2525
configure aetos in `settings.py`:
2626

27-
> ℹ️ **Important**: When using `django-aetos` in a project behind a reverse proxy, include [`django-xff`](https://pypi.org/project/django-xff/) in your project, so that a request's `REMOTE_ADDR` header gets rewritten to the correct client ip.
27+
ℹ️ **Important**: When using `django-aetos` in a project behind a reverse proxy, include `django-xff <https://pypi.org/project/django-xff/>`_ in your project, so that a request's `REMOTE_ADDR` header gets rewritten to the correct client ip.
2828

2929
.. code-block:: python
3030
@@ -35,7 +35,7 @@ configure aetos in `settings.py`:
3535
# enables authentication via bearer token
3636
# if enabled with empty list, requests are denied
3737
AETOS_ENABLE_AUTH = True
38-
AETOS_AUTH_TOKENS = ["ooy9Evuth0zahka"]
38+
AETOS_AUTH_TOKENLIST = ["ooy9Evuth0zahka"]
3939
4040
and send requests to `/metrics` to Aetos in your `urls.py`:
4141

@@ -49,7 +49,7 @@ and send requests to `/metrics` to Aetos in your `urls.py`:
4949
]
5050
5151
Then, add your own metrics by listening for the `collect_metrics` signal.
52-
Refer to [the django docs](https://docs.djangoproject.com/en/dev/topics/signals/)
52+
Refer to `the django docs <https://docs.djangoproject.com/en/dev/topics/signals/>`_
5353
on details how to do this.
5454

5555
Your signal handler can return multiple metrics, each represented as a dict

0 commit comments

Comments
 (0)