You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.2KB

  1. # listen_address is the listening address of go-apt-cacher.
  2. # Default is ":3142".
  3. listen_address = ":8080"
  4. # Interval to check updates for Release/InRelease files.
  5. # Default: 600 seconds
  6. check_interval = 600
  7. # Cache period for bad HTTP response statuses.
  8. # Default: 3 seconds
  9. cache_period = 3
  10. # Directory for meta data files.
  11. # The directory owner must be the same as the process owner of go-apt-cacher.
  12. meta_dir = "/var/spool/go-apt-cacher/meta"
  13. # Directory for non-meta data files.
  14. # This directory must be different from meta_dir.
  15. # The directory owner must be the same as the process owner of go-apt-cacher.
  16. cache_dir = "/var/spool/go-apt-cacher/cache"
  17. # Capacity for cache_dir.
  18. # Default: 1 GiB
  19. cache_capacity = 10
  20. # Maximum concurrent connections for an upstream server.
  21. # Setting this 0 disables limit on the number of connections.
  22. # Default: 10
  23. max_conns = 20
  24. # log specifies logging configurations.
  25. # Details at https://godoc.org/github.com/cybozu-go/well#LogConfig
  26. [log]
  27. #filename = "/var/log/go-apt-cacher.log"
  28. level = "info"
  29. format = "plain"
  30. # mapping declares which prefix maps to a Debian repository URL.
  31. # prefix must match this regexp: ^[a-z0-9._-]+$
  32. [mapping]
  33. ubuntu = "http://archive.ubuntu.com/ubuntu"
  34. security = "http://security.ubuntu.com/ubuntu"