From f0b3a0701cf78eb2e050f286a24821e960e8c1fd Mon Sep 17 00:00:00 2001 From: threes33 Date: Tue, 4 Jun 2024 12:29:35 -0700 Subject: [PATCH] Adds HTTP_PROXIES related parameters --- configuration/configuration.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configuration/configuration.py b/configuration/configuration.py index 2145a25..063a9e2 100644 --- a/configuration/configuration.py +++ b/configuration/configuration.py @@ -200,10 +200,10 @@ if 'CENSUS_REPORTING_ENABLED' in environ: EXEMPT_VIEW_PERMISSIONS = _environ_get_and_map('EXEMPT_VIEW_PERMISSIONS', '', _AS_LIST) # HTTP proxies NetBox should use when sending outbound HTTP requests (e.g. for webhooks). -# HTTP_PROXIES = { -# 'http': 'http://10.10.1.10:3128', -# 'https': 'http://10.10.1.10:1080', -# } +HTTP_PROXIES = { + 'http': environ.get('HTTP_PROXY', None), + 'https': environ.get('HTTPS_PROXY', None), +} # IP addresses recognized as internal to the system. The debugging toolbar will be available only to clients accessing # NetBox from an internal IP.