Use signer proxy for all http(s) requests
This commit is contained in:
parent
f4d2fae5d8
commit
8595140f38
1 changed files with 3 additions and 2 deletions
|
@ -5,7 +5,7 @@ from data.database import CloseForLongOperation
|
|||
from data import model
|
||||
from data.model.storage import get_storage_locations
|
||||
|
||||
from urlparse import urljoin, urlparse
|
||||
from urlparse import urljoin
|
||||
from util.secscan.validator import SecurityConfigValidator
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
@ -261,5 +261,6 @@ class SecurityScannerAPI(object):
|
|||
return client.request(method, url, json=body, params=params, timeout=timeout,
|
||||
cert=self._keys, verify='/conf/mitm.cert', headers=headers,
|
||||
proxies={
|
||||
urlparse(signer_proxy_url).scheme: signer_proxy_url
|
||||
'https': signer_proxy_url,
|
||||
'http': signer_proxy_url
|
||||
})
|
||||
|
|
Reference in a new issue