File: 10-apt-cacher-ng.conf

package info (click to toggle)
apt-cacher-ng 3.3.1-2~bpo10+1
  • links: PTS, VCS
  • area: main
  • in suites: buster-backports
  • size: 2,040 kB
  • sloc: cpp: 17,564; sh: 553; ansic: 401; perl: 377; makefile: 126
file content (14 lines) | stat: -rw-r--r-- 674 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# This is a config file snippet for lighttpd
# 
# Original description:
# It seems rather trivial but lighttpd 1.4 doesn't allow proxy and rewrite at
# the same time, so remapping urls into apt-cacher-ng is trickier than need be
# when used with lighttpd. Also, for users in very restrictive environments,
# opening "funny" ports is not always simple but opening 443/https is well
# understood and can pass review without a glance.

10-apt-cacher-ng.conf:
server.modules   += ( "mod_proxy" )
$HTTP["url"] =~ "^/(ftp.debian.org|security.debian.org|archive.ubuntu.com|security.ubuntu.com)/" {
        proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "3142" ) ) )
}