Skip to content
Snippets Groups Projects
Commit 010a86c6 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Add app vhosts in no_proxy (refs #21514).

parent 1f145ea7
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,12 @@ def setup(interactive=True):
environment += 'http_proxy="%s"\n' % http_proxy
if https_proxy:
environment += 'https_proxy="%s"\n' % https_proxy
if no_proxy:
if http_proxy or https_proxy:
no_proxy = no_proxy + ',' if no_proxy else ''
no_proxy += 'localhost'
no_proxy += ',' + utils.get_conf('MS_SERVER_NAME', 'mediaserver')
no_proxy += ',' + utils.get_conf('MONITOR_SERVER_NAME', 'monitor')
no_proxy += ',' + utils.get_conf('CM_SERVER_NAME', 'campusmanager')
environment += 'no_proxy="%s"\n' % no_proxy
# apt
apt_proxy_path = '/etc/apt/apt.conf.d/proxy'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment