mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	Cleanup settings.py (#6691)
- Remove INTERNAL_IPS array - Used previously for debug_toolbar integration
This commit is contained in:
		| @@ -376,20 +376,9 @@ if LDAP_AUTH: | ||||
|     ) | ||||
|     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') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user