Skip to content

Commit

Permalink
Cleanup settings.py (#6691)
Browse files Browse the repository at this point in the history
- Remove INTERNAL_IPS array
- Used previously for debug_toolbar integration
  • Loading branch information
SchrodingersGat authored Mar 13, 2024
1 parent 2f852c8 commit b333146
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions InvenTree/InvenTree/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,20 +376,9 @@
)
AUTH_LDAP_FIND_GROUP_PERMS = True

# Internal IP addresses allowed to see the debug toolbar
INTERNAL_IPS = ['127.0.0.1']

# Internal flag to determine if we are running in docker mode
DOCKER = get_boolean_setting('INVENTREE_DOCKER', default_value=False)

if DOCKER: # pragma: no cover
# Internal IP addresses are different when running under docker
hostname, ___, ips = socket.gethostbyname_ex(socket.gethostname())
INTERNAL_IPS = [ip[: ip.rfind('.')] + '.1' for ip in ips] + [
'127.0.0.1',
'10.0.2.2',
]

# Allow secure http developer server in debug mode
if DEBUG:
INSTALLED_APPS.append('sslserver')
Expand Down

0 comments on commit b333146

Please sign in to comment.