configpolicy/roles/docker/templates/http-proxy.conf.j2

13 lines
334 B
Django/Jinja

{% if http_proxy is defined or http_proxy is defined %}
[Service]
{% if http_proxy is defined %}
Environment=HTTP_PROXY={{ http_proxy }}
{% endif %}
{% if https_proxy is defined %}
Environment=HTTPS_PROXY={{ https_proxy }}
{% endif %}
{% if no_proxy is defined %}
Environment=NO_PROXY={{ no_proxy|join(',') }}
{% endif %}
{% endif %}