2
0

fix(superuser): Don't set INTERNAL_IPS to Docker network (#581)

`INTERNAL_IPS` is used to check whether to allow superuser access or not. Limiting this to the Docker internal network makes it impossible for anyone to reach admin pages with on-premise setup.

This is a follow up to #572 and it fixes #577.
This commit is contained in:
Burak Yigit Kaya 2020-07-13 19:21:52 +03:00 committed by GitHub
parent 75fe6c073b
commit a2507c10e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,8 +30,8 @@ def get_internal_network():
return ("{0:s}/{1:d}".format(base, netmask_bits),)
INTERNAL_IPS = get_internal_network()
INTERNAL_SYSTEM_IPS = INTERNAL_IPS
INTERNAL_SYSTEM_IPS = get_internal_network()
DATABASES = {
"default": {