summaryrefslogtreecommitdiff
path: root/data/templates/system/proxy.j2
blob: 215c4c5c2996ce6b935fc2141465ddd5b30a7ee0 (plain)
1
2
3
4
5
6
7
# generated by system-proxy.py
{% if url is vyos_defined and port is vyos_defined %}
{# remove http:// prefix so we can inject a username/password if present #}
export http_proxy=http://{{ username ~ ':' ~ password ~ '@' if username is vyos_defined and password is vyos_defined }}{{ url | replace('http://', '') }}:{{ port }}
export https_proxy=$http_proxy
export ftp_proxy=$http_proxy
{% endif %}