Skip to content

Commit fa492ad

Browse files
committed
[COOK-2660] Add Debian 6.0 "squeeze" specific acng.conf
1 parent 3028576 commit fa492ad

File tree

1 file changed

+174
-0
lines changed

1 file changed

+174
-0
lines changed

templates/debian-6.0/acng.conf.erb

+174
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
2+
# Letter case in directive names does not matter. Must be separated with colons.
3+
# Valid boolean values are a zero number for false, non-zero numbers for true.
4+
5+
CacheDir: /var/cache/apt-cacher-ng
6+
7+
# set empty to disable logging
8+
LogDir: /var/log/apt-cacher-ng
9+
10+
# TCP (http) port
11+
# Set to 9999 to emulate apt-proxy
12+
Port:<%= node['apt']['cacher_port'] %>
13+
14+
# Addresses or hostnames to listen on. Multiple addresses must be separated by
15+
# spaces. Each entry must be associated with a local interface. DNS resolution
16+
# is performed using getaddrinfo(3) for all available protocols (i.e. IPv4 and
17+
# IPv6 if available).
18+
#
19+
# Default: not set, will listen on all interfaces.
20+
#
21+
# BindAddress: localhost 192.168.7.254 publicNameOnMainInterface
22+
23+
#Proxy: http://www-proxy.example.net:80
24+
#proxy: http://username:[email protected]:3128
25+
26+
# Repository remapping. See manual for details.
27+
# In this example, backends file is generated during package installation.
28+
Remap-debrep: file:deb_mirror*.gz /debian ; file:backends_debian
29+
Remap-uburep: file:ubuntu_mirrors /ubuntu ; file:backends_ubuntu
30+
Remap-debvol: file:debvol_mirror*.gz /debian-volatile ; file:backends_debvol
31+
Remap-cygwin: file:cygwin_mirrors /cygwin # ; file:backends_cygwin # incomplete, please create this file
32+
33+
# Virtual page accessible in a web browser to see statistics and status
34+
# information, i.e. under http://localhost:3142/acng-report.html
35+
ReportPage: acng-report.html
36+
37+
# Socket file for accessing through local UNIX socket instead of TCP/IP. Can be
38+
# used with inetd bridge or cron client.
39+
# SocketPath:/var/run/apt-cacher-ng/socket
40+
41+
# Forces log file to be written to disk after every line when set to 1. Default
42+
# is 0, buffer flush happens after client disconnects.
43+
#
44+
# (technically, this is an alias to the Debug option provided for convenience)
45+
#
46+
# UnbufferLogs: 0
47+
48+
# Set to 0 to store only type, time and transfer sizes.
49+
# 1 -> client IP and relative local path are logged too
50+
# VerboseLog: 1
51+
52+
# Don't detach from the console
53+
# ForeGround: 0
54+
55+
# Store the pid of the daemon process therein
56+
# PidFile: /var/run/apt-cacher-ng/pid
57+
58+
# Forbid outgoing connections, work around them or respond with 503 error
59+
# offlinemode:0
60+
61+
# Forbid all downloads that don't run through preconfigured backends (.where)
62+
#ForceManaged: 0
63+
64+
# Days before considering an unreferenced file expired (to be deleted).
65+
# Warning: if the value is set too low and particular index files are not
66+
# available for some days (mirror downtime) there is a risk of deletion of
67+
# still usefull package files.
68+
ExTreshold: 4
69+
70+
# Stop expiration when a critical problem appeared. Currently only failed
71+
# refresh of an index file is considered as critical.
72+
#
73+
# WARNING: don't touch this option or set to a non-zero number.
74+
# Anything else is DANGEROUS and may cause data loss.
75+
#
76+
# ExAbortOnProblems: 1
77+
78+
# Replace some Windows/DOS-FS incompatible chars when storing
79+
# StupidFs: 0
80+
81+
# Experimental feature for apt-listbugs: pass-through SOAP requests and
82+
# responses to/from bugs.debian.org. If not set, default is true if
83+
# ForceManaged is enabled and false otherwise.
84+
# ForwardBtsSoap: 1
85+
86+
# The daemon has a small cache for DNS data, to speed up resolution. The
87+
# expiration time of the DNS entries can be configured in seconds.
88+
# DnsCacheSeconds: 3600
89+
90+
# Don't touch the following values without good consideration!
91+
#
92+
# Max. count of connection threads kept ready (for faster response in the
93+
# future). Should be a sane value between 0 and average number of connections,
94+
# and depend on the amount of spare RAM.
95+
# MaxStandbyConThreads: 8
96+
#
97+
# Hard limit of active thread count for incomming connections, i.e. operation
98+
# is refused when this value is reached (below zero = unlimited).
99+
# MaxConThreads: -1
100+
#
101+
#VfilePattern = (^|.*?/)(Index|Packages\.bz2|Packages\.gz|Packages|Release|Release\.gpg|Sources\.bz2|Sources\.gz|Sources|release|index\.db-.*\.gz|Contents-[^/]*\.gz|pkglist[^/]*\.bz2|rclist[^/]*\.bz2|/meta-release[^/]*|Translation[^/]*\.bz2)$
102+
#PfilePattern = .*(\.deb|\.rpm|\.dsc|\.tar\.gz\.gpg|\.tar\.gz|\.diff\.gz|\.diff\.bz2|\.jigdo|\.template|changelog|copyright|\.udeb|\.diff/.*\.gz|vmlinuz|initrd\.gz|(Devel)?ReleaseAnnouncement(\\?.*)?)$
103+
# Whitelist for expiration, file types not to be removed even when being
104+
# unreferenced. Default: same as VfilePattern which is a safe bed. When and
105+
# only when the only used mirrors are official repositories (with working
106+
# Release files) then it might be set to something more restrictive, like
107+
# (^|.*?/)(Release|Release\.gpg|release|meta-release|Translation[^/]*\.bz2)$
108+
#WfilePattern = (^|.*?/)(Index|Packages\.bz2|Packages\.gz|Packages|Release|Release\.gpg|Sources\.bz2|Sources\.gz|Sources|release|index\.db-.*\.gz|Contents-[^/]*\.gz|pkglist[^/]*\.bz2|rclist[^/]*\.bz2|/meta-release[^/]*|Translation[^/]*\.bz2)$
109+
110+
# Higher modes only working with the debug version
111+
# Warning, writes a lot into apt-cacher.err logfile
112+
# Value overwrites UnbufferLogs setting (aliased)
113+
# Debug:3
114+
115+
# Usually, general purpose proxies like Squid expose the IP adress of the
116+
# client user to the remote server using the X-Forwarded-For HTTP header. This
117+
# behaviour can be optionally turned on with the Expose-Origin option.
118+
# ExposeOrigin: 0
119+
120+
# When logging the originating IP address, trust the information supplied by
121+
# the client in the X-Forwarded-For header.
122+
# LogSubmittedOrigin: 0
123+
124+
# The version string reported to the peer, to be displayed as HTTP client (and
125+
# version) in the logs of the mirror.
126+
# WARNING: some archives use this header to detect/guess capabilities of the
127+
# client (i.e. redirection support) and change the behaviour accordingly, while
128+
# ACNG might not support the expected features. Expect side effects.
129+
#
130+
# UserAgent: Yet Another HTTP Client/1.2.3p4
131+
132+
# In some cases the Import and Expiration tasks might create fresh volatile
133+
# data for internal use by reconstructing them using patch files. This
134+
# by-product might be recompressed with bzip2 and with some luck the resulting
135+
# file becomes identical to the *.bz2 file on the server, usable for APT
136+
# clients trying to fetch the full .bz2 compressed version. Injection of the
137+
# generated files into the cache has however a disadvantage on underpowered
138+
# servers: bzip2 compession can create high load on the server system and the
139+
# visible download of the busy .bz2 files also becomes slower.
140+
#
141+
# RecompBz2: 0
142+
143+
# Network timeout for outgoing connections.
144+
# NetworkTimeout: 60
145+
146+
# Sometimes it makes sense to not store the data in cache and just return the
147+
# package data to client as it comes in. DontCache parameters can enable this
148+
# behaviour for certain URL types. The tokens are extended regular expressions
149+
# that URLs are matched against.
150+
#
151+
# DontCacheRequested is applied to the URL as it comes in from the client.
152+
# Example: exclude packages built with kernel-package for x86
153+
# DontCacheRequested: linux-.*_10\...\.Custo._i386
154+
# Example usecase: exclude popular private IP ranges from caching
155+
# DontCacheRequested: 192.168.0 ^10\..* 172.30
156+
#
157+
# DontCacheResolved is applied to URLs after mapping to the target server. If
158+
# multiple backend servers are specified then it's only matched against the
159+
# download link for the FIRST possible source (due to implementation limits).
160+
# Example usecase: all Ubuntu stuff comes from a local mirror (specified as
161+
# backend), don't cache it again:
162+
# DontCacheResolved: ubuntumirror.local.net
163+
#
164+
# DontCache directive sets (overrides) both, DontCacheResolved and
165+
# DontCacheRequested. Provided for convenience, see those directives for
166+
# details.
167+
#
168+
# Default permission set of freshly created files and directories, as octal
169+
# numbers (see chmod(1) for details).
170+
# Can by limited by the umask value (see umask(2) for details) if it's set in
171+
# the environment of the starting shell, e.g. in apt-cacher-ng init script or
172+
# in its configuration file.
173+
# DirPerms: 00755
174+
# FilePerms: 00664

0 commit comments

Comments
 (0)