File: apt-proxy.conf

package info (click to toggle)
apt-proxy 1.3.0
  • links: PTS
  • area: main
  • in suites: woody
  • size: 188 kB
  • ctags: 10
  • sloc: sh: 236; makefile: 39
file content (99 lines) | stat: -rw-r--r-- 2,988 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Configuration for apt-proxy

# Change this path if you do not want to keep your cache under var
APT_PROXY_CACHE=/var/cache/apt-proxy

### Rsync Backends
# Three or more fields each:
# 1) URL prefix
# 2) Dir to put files in (remember the trailing /!)
# 3...) rsync backends to replace it with (remember the trailing /!)

# You can specify multiple backends like this:
#add_backend /main/					\
#	$APT_PROXY_CACHE/debian/			\
#	SERVERONE::debian/				\
#	SERVERTWO::debian/				\
#	SERVERTHREE::debian/

# HINT: Any request matching none of these is not served, making
# partial caching easy.

add_backend /main/					\
	$APT_PROXY_CACHE/debian/			\
	ftp.us.debian.org::debian/			\
	ftp.de.debian.org::debian/			\
	ftp2.de.debian.org::debian/			\
	ftp.uk.debian.org::debian/

add_backend /non-US/					\
	$APT_PROXY_CACHE/non-US/			\
	ftp.de.debian.org::debian-non-US/		\
	ftp2.de.debian.org::debian-non-US/		\
	ftp.uk.debian.org::debian/non-US/

add_backend /security/					\
	$APT_PROXY_CACHE/security/			\
	security.debian.org::debian-security/		\
	non-us.debian.org::debian-security/		

# Here are some more examples:
#
#Emdebian project
# add_backend /emdebian/ 				\
#	$APT_PROXY_CACHE/emdebian/ 			\
#	http://emdebian.sourceforge.net/emdebian/
#
#Blackdown jave
# add_backend /blackdown/ 				\
#	$APT_PROXY_CACHE/blackdown/ 			\
#	http://ftp.gwdg.de/pub/languages/java/linux/debian/
#
#apt-proxy repository 
# see: http://apt-proxy.sourceforge.net/apt-proxy/README
# add_backend /apt-proxy/				\
#	$APT_PROXY_CACHE/apt-proxy/			\
#	http://apt-proxy.sourceforge.net/apt-proxy/


############################## OTHER VARS ##################################
#	Automatically delete old debs when we download a newer one
#	after this many days of the older not being accessed.
#	Comment out to avoid, set to 0 for `instantly' (not recommended;
#	sometimes the new versions are broken
CLEANUP_DAYS=14

#	Once every n days, look through tree to erase and debs which
#	haven't been accessed in that long (eg. obsolete, rarely used, etc).
#	Comment out to disable.
CLEAN_SWEEP=60

#       Maximum number of versions of each package to keep in cache
#       directory.  Version purging is carried out immediately after a new
#       version is downloaded.
#	Comment out to disable.
MAX_VERSIONS=2

#	Maximum frequency of Packages/etc. updates from back end (minutes)
#	Keep high to speed things up.
BACKEND_FREQ=240

#	Number of seconds for rsync to wait before timing out.
RSYNC_TIMEOUT=30

#	Number of seconds for wget to wait to connect before timing out.
WGET_TIMEOUT=30

#       Uncomment to change the path to wget, or add extra options.  For
#       example, if you are behind a firewall that does not allow active
#       FTP, use WGET="wget --passive-ftp"
#WGET=wget

#       Uncomment to change the path to rsync or add extra options.
#RSYNC=rsync

#	Uncomment to keep stats of successful backend transfers in the log.
#KEEP_STATS=1

#	Uncomment this for debugging messages
#DEBUG=true