|
|
@@ -0,0 +1,42 @@ |
|
|
|
# listen_address is the listening address of go-apt-cacher. |
|
|
|
# Default is ":3142". |
|
|
|
listen_address = ":8080" |
|
|
|
|
|
|
|
# Interval to check updates for Release/InRelease files. |
|
|
|
# Default: 600 seconds |
|
|
|
check_interval = 600 |
|
|
|
|
|
|
|
# Cache period for bad HTTP response statuses. |
|
|
|
# Default: 3 seconds |
|
|
|
cache_period = 3 |
|
|
|
|
|
|
|
# Directory for meta data files. |
|
|
|
# The directory owner must be the same as the process owner of go-apt-cacher. |
|
|
|
meta_dir = "/var/spool/go-apt-cacher/meta" |
|
|
|
|
|
|
|
# Directory for non-meta data files. |
|
|
|
# This directory must be different from meta_dir. |
|
|
|
# The directory owner must be the same as the process owner of go-apt-cacher. |
|
|
|
cache_dir = "/var/spool/go-apt-cacher/cache" |
|
|
|
|
|
|
|
# Capacity for cache_dir. |
|
|
|
# Default: 1 GiB |
|
|
|
cache_capacity = 10 |
|
|
|
|
|
|
|
# Maximum concurrent connections for an upstream server. |
|
|
|
# Setting this 0 disables limit on the number of connections. |
|
|
|
# Default: 10 |
|
|
|
max_conns = 20 |
|
|
|
|
|
|
|
# log specifies logging configurations. |
|
|
|
# Details at https://godoc.org/github.com/cybozu-go/well#LogConfig |
|
|
|
[log] |
|
|
|
#filename = "/var/log/go-apt-cacher.log" |
|
|
|
level = "info" |
|
|
|
format = "plain" |
|
|
|
|
|
|
|
# mapping declares which prefix maps to a Debian repository URL. |
|
|
|
# prefix must match this regexp: ^[a-z0-9._-]+$ |
|
|
|
[mapping] |
|
|
|
ubuntu = "http://archive.ubuntu.com/ubuntu" |
|
|
|
security = "http://security.ubuntu.com/ubuntu" |