/apt-cacher-ng/acng.conf.bak

http://github.com/brinkman83/bashrc · Unknown · 136 lines · 106 code · 30 blank · 0 comment · 0 complexity · 3b5873f7f707dfc8453c5d676d10abaf MD5 · raw file

  1. CacheDir: /data/cache/apt-cacher-ng
  2. LogDir: /var/log/apt-cacher-ng
  3. Port:9999
  4. # Addresses or hostnames to listen on. Multiple addresses must be
  5. # separated by spaces. Each entry must be associated with a local
  6. # interface. DNS resolution is performed using getaddrinfo(3) for all
  7. # available protocols (i.e. IPv4 and IPv6 if available).
  8. #
  9. # Default: not set, will listen on all interfaces.
  10. #
  11. BindAddress: localhost 192.168.1.2 fileserver.homework.local
  12. #Proxy: http://www-proxy.example.net:80
  13. #proxy: http://username:proxypassword@proxy.example.net:3128
  14. Remap-debrep: file:deb_mirror*.gz /debian ; file:backends_debian
  15. Remap-uburep: file:ubuntu_mirrors /ubuntu ; file:backends_ubuntu
  16. Remap-debvol: file:debvol_mirror*.gz /debian-volatile ; file:backends_debvol
  17. # http://localhost:9999/acng-report.html
  18. ReportPage: acng-report.html
  19. # Socket file for accessing through local UNIX socket instead of TCP/IP. Can be
  20. # used with inetd bridge or cron client.
  21. # SocketPath:/var/run/apt-cacher-ng/socket
  22. # Forces log file to be written to disk after every line when set to 1. Default is
  23. # 0, buffer flush happens after client disconnects.
  24. #
  25. # UnbufferLogs: 0
  26. # Set to 0 to store only type, time and transfer sizes. 1 -> client IP and
  27. # relative local path are logged too
  28. VerboseLog: 1
  29. # Don't detach from the console
  30. # ForeGround: 0
  31. # Store the pid of the daemon process therein
  32. # PidFile: /var/run/apt-cacher-ng/pid
  33. # Forbid outgoing connections, work around them or respond with 503 error
  34. # offlinemode:0
  35. # Forbid all downloads that don't run through preconfigured backends (.where)
  36. #ForceManaged: 0
  37. # Days before considering an unreferenced file expired (to be deleted).
  38. # Warning: if the value is set too low and particular index files are not
  39. # available for some days (mirror downtime) there is a risk of deletion of
  40. # still usefull package files.
  41. ExTreshold: 4
  42. # Stop expiration when a critical problem appeared. Currently only failed
  43. # refresh of an index file is considered as critical.
  44. #
  45. # WARNING: don't touch this option or set to a non-zero number.
  46. # Anything else is DANGEROUS and may cause data loss.
  47. #
  48. ExAbortOnProblems: 1
  49. # Replace some Windows/DOS-FS incompatible chars when storing
  50. StupidFs: 0
  51. # Experimental feature for apt-listbugs: pass-through SOAP requests and responses
  52. # to/from bugs.debian.org. If not set, default is true if ForceManaged is enabled
  53. # and false otherwise.
  54. ForwardBtsSoap: 1
  55. # The daemon has a small cache for DNS data, to speed up resolution. The
  56. # expiration time of the DNS entries can be configured in seconds.
  57. DnsCacheSeconds: 3600
  58. # Max. count of connection threads kept ready (for faster response in the future). Should be
  59. # a sane value between 0 and average number of connections, and depend on the amount of spare RAM.
  60. #
  61. MaxStandbyConThreads: 16
  62. # Hard limit of active thread count for incomming connections, i.e. operation is refused
  63. # when this value is reached (below zero = unlimited).
  64. #
  65. MaxConThreads: -1
  66. # Whitelist for expiration, file types not to be removed even when being
  67. # unreferenced. Default: same as VfilePattern which is a safe bed. When and
  68. # only when the only used mirrors are official repositories (with working
  69. # Release files) then it might be set to something more restrictive, like
  70. # (^|.*?/)(Release|Release\.gpg|release|meta-release|Translation[^/]*\.bz2)$
  71. #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)$
  72. #PfilePattern = .*(\.deb|\.rpm|\.dsc|\.tar\.gz\.gpg|\.tar\.gz|\.diff\.gz|\.diff\.bz2|\.jigdo|\.template|changelog|copyright|\.udeb|\.diff/.*\.gz|vmlinuz|initrd\.gz|ReleaseAnnouncement)$
  73. #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)$
  74. # Higher modes only working with the debug version Warning, writes a lot into apt-cacher.err
  75. # logfile Value overwrites UnbufferLogs setting (aliased)
  76. #
  77. # Debug:3
  78. # Usually, general purpose proxies like Squid expose the IP adress of the client user to the
  79. # remote server using the X-Forwarded-For HTTP header. This behaviour can be optionally
  80. # turned on with the Expose-Origin option.
  81. #
  82. ExposeOrigin: 1
  83. # When logging the originating IP address, trust the information supplied by the client in
  84. # the X-Forwarded-For header.
  85. #
  86. #
  87. LogSubmittedOrigin: 0
  88. # The version string reported to the peer, to be displayed as HTTP client (and version) in
  89. # the logs of the mirror. WARNING: some archives use this header to detect/guess
  90. # capabilities of the client (i.e. redirection support) and change the behaviour
  91. # accordingly, while ACNG might not support the expected features. Expect side effects.
  92. #
  93. UserAgent: Yet Another HTTP Client/1.2.3p4
  94. # In some cases the Import and Expiration tasks might create fresh volatile
  95. # data for internal use by reconstructing them using patch files. This
  96. # by-product might be recompressed with bzip2 and with some luck the resulting
  97. # file becomes identical to the *.bz2 file on the server, usable for APT
  98. # clients trying to fetch the full .bz2 compressed version. Injection of the
  99. # generated files into the cache has however a disadvantage on underpowered
  100. # servers: bzip2 compession can create high load on the server system and the
  101. # visible download of the busy .bz2 files also becomes slower.
  102. #
  103. RecompBz2: 1
  104. # Network timeout for outgoing connections.
  105. #
  106. NetworkTimeout: 60