formula-apt-cacher/apt-cacher/ng/files/client.conf

7 lines
331 B
Plaintext

{% from "apt-cacher/ng/map.jinja" import apt_cacher_ng with context -%}
Acquire::http::Proxy "http://{{ apt_cacher_ng.server_address }}:{{ apt_cacher_ng.server_port }}";
Acquire::https::Proxy "{{ apt_cacher_ng.https_proxy }}";
{% for host in apt_cacher_ng.local_mirrors -%}
Acquire::http::Proxy::{{ host }} "DIRECT";
{% endfor -%}