Add the KHAGANAT_INTERNAL_IPS setting

This commit is contained in:
Rodolphe Breard 2018-11-12 14:35:37 +01:00
parent a397d766a0
commit 52eb58f2a9
2 changed files with 2 additions and 0 deletions

View file

@ -65,6 +65,7 @@ You can set the following variables in the `.env` file:
* `KHAGANAT_HTTPS_HEADER_VALUE`: Header value for `SECURE_PROXY_SSL_HEADER`, default is `https`.
* `KHAGANAT_NSFW_TAGS`: Coma-separated list of words that triggers the content warning in logs, default is `\#nsfw`.
* `KHAGANAT_NSFW_NAME`: Name of the cookie holding the NSFW allowance, default is `nsfw_allowed`.
* `KHAGANAT_INTERNAL_IPS`: List of IP considered as internal, coma separated, default is `127.0.0.1,::1`.
## Quick update

View file

@ -30,6 +30,7 @@ SECRET_KEY = config('KHAGANAT_SECRET_KEY')
DEBUG = config('KHAGANAT_DEBUG', default=False, cast=bool)
ALLOWED_HOSTS = config('KHAGANAT_HOSTNAMES', default='', cast=Csv())
INTERNAL_IPS = config('KHAGANAT_INTERNAL_IPS', default='127.0.0.1,::1', cast=Csv())
# Application definition