summaryrefslogtreecommitdiff
path: root/data/templates/system/proxy.j2
blob: 0737cd3f8d49c3562ffa7a2e5fc6f026b4a7edf4 (plain)
1
2
3
4
5
6
7
### autogenerated 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 %}