summaryrefslogtreecommitdiff
path: root/doc/examples/configure-index
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2009-11-25 23:29:57 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2009-11-25 23:29:57 +0100
commitc0d438474bac961897f9e9472356222f79350c39 (patch)
tree6e8f83d52d01983d0e43dd8797e71ca13dc6b1d1 /doc/examples/configure-index
parentce857f32cf3c73ee67147ea0eafadb5a1c5da952 (diff)
add https options which default to the ones from http for the https
method as this is more sane than using only the http options without a possibility to override these for https.
Diffstat (limited to 'doc/examples/configure-index')
-rw-r--r--doc/examples/configure-index33
1 files changed, 24 insertions, 9 deletions
diff --git a/doc/examples/configure-index b/doc/examples/configure-index
index 16e864d89..7e86b3d4a 100644
--- a/doc/examples/configure-index
+++ b/doc/examples/configure-index
@@ -194,19 +194,34 @@ Acquire
User-Agent "Debian APT-HTTP/1.3";
};
- // HTTPS method configuration:
- // - uses the http proxy config
- // - uses the http cache-control values
- // - uses the http Dl-Limit values
- https
+
+
+ // HTTPS method configuration: uses the http
+ // - proxy config
+ // - cache-control values
+ // - Dl-Limit, Timout, ... values
+ // if not set explicit for https
+ //
+ // see /usr/share/doc/apt/examples/apt-https-method-example.conf.gz
+ // for more examples
+ https
{
Verify-Peer "false";
SslCert "/etc/apt/some.pem";
- CaPath "/etc/ssl/certs";
- Verify-Host" "true";
- AllowRedirect "true";
+ CaPath "/etc/ssl/certs";
+ Verify-Host" "true";
+ AllowRedirect "true";
+
+ Timeout "120";
+ AllowRedirect "true";
+
+ // Cache Control. Note these do not work with Squid 2.0.2
+ No-Cache "false";
+ Max-Age "86400"; // 1 Day age on index files
+ No-Store "false"; // Prevent the cache from storing archives
+ Dl-Limit "7"; // 7Kb/sec maximum download rate
- User-Agent "Debian APT-CURL/1.0";
+ User-Agent "Debian APT-CURL/1.0";
};
ftp