-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathgo-apt-cacher.toml
More file actions
42 lines (34 loc) · 1.25 KB
/
go-apt-cacher.toml
File metadata and controls
42 lines (34 loc) · 1.25 KB
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
# listen_address is the listening address of go-apt-cacher.
# Default is ":3142".
listen_address = ":3142"
# 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 = 1
# Maximum concurrent connections for an upstream server.
# Setting this 0 disables limit on the number of connections.
# Default: 10
max_conns = 10
# 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"