13 lines
334 B
Django/Jinja
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 %}
|