Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support automatic detection and configuration #20

Open
aadityabhatia opened this issue Sep 5, 2020 · 0 comments
Open

support automatic detection and configuration #20

aadityabhatia opened this issue Sep 5, 2020 · 0 comments

Comments

@aadityabhatia
Copy link

Client: detect proxies on LAN before downloading packages. See auto-apt-proxy for a debian-based example.

Server: use avahi to announce proxy server. apt-cacher-ng package on debian includes the following avahi service definition in /etc/avahi/services/apt-cacher-ng.service.

<?xml version="1.0" standalone='no'?>
<!--
From: Lisandro Damián Nicanor Pérez Meyer <[email protected]>
X-Source: http://blog.surgut.co.uk/2013/03/avahi-apt-cacher-ng-sbuild.html
 See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=704790 for details.
-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
 <name replace-wildcards="yes">apt-cacher-ng proxy on %h</name>
 <service protocol="ipv6">
  <type>_apt_proxy._tcp</type>
  <port>3142</port>
 </service>
 <service protocol="ipv4">
  <type>_apt_proxy._tcp</type>
  <port>3142</port>
 </service>
</service-group>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant