Add the KHAGANAT_INTERNAL_IPS setting
This commit is contained in:
parent
a397d766a0
commit
52eb58f2a9
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue