|
| 1 | +# This is a configuration file for apt-cacher-ng, a smart caching proxy for |
| 2 | +CacheDir: /var/cache/apt-cacher-ng |
| 3 | +LogDir: /var/log/apt-cacher-ng |
| 4 | +Port: 3142 |
| 5 | +# BindAddress: localhost 192.168.7.254 publicNameOnMainInterface |
| 6 | +Remap-debrep: file:deb_mirror*.gz /debian ; file:backends_debian # Debian Archives |
| 7 | +Remap-uburep: file:ubuntu_mirrors /ubuntu ; file:backends_ubuntu.au # Ubuntu Archives |
| 8 | +Remap-cygwin: file:cygwin_mirrors /cygwin # ; file:backends_cygwin # incomplete, please create this file or specify preferred mirrors here |
| 9 | +Remap-alxrep: file:archlx_mirrors /archlinux # ; file:backend_archlx # Arch Linux |
| 10 | +Remap-centosmirrorlist: mirrorlist.centos.org |
| 11 | +Remap-centos: file:centos_mirrors ; file:backends_centos.au # Fedora Linux |
| 12 | +Remap-fedora: file:fedora_mirrors ; file:backends_fedora.au # Fedora Linux |
| 13 | +Remap-epel: file:epel_mirrors ; file:backends_epel.au # Fedora EPEL |
| 14 | +Remap-slrep: file:sl_mirrors # Scientific Linux |
| 15 | +Remap-gentoo: file:gentoo_mirrors.gz /gentoo ; file:backends_gentoo # Gentoo Archives |
| 16 | +#Remap-alpine: file:alpine_mirrors /alpine #; dl-cdn.alpinelinux.org # Alpine Archives |
| 17 | +Remap-alpine: dl-cdn.alpinelinux.org |
| 18 | +Remap-yarn: registry.yarnpkg.com |
| 19 | +Remap-npm: registry.npmjs.org |
| 20 | +Remap-node: nodejs.org |
| 21 | +Remap-apache: file:apache_mirrors ; file:backends_apache.au |
| 22 | +# Remap-secdeb: security.debian.org |
| 23 | +ReportPage: acng-report.html |
| 24 | +# SocketPath:/var/run/apt-cacher-ng/socket |
| 25 | +UnbufferLogs: 1 |
| 26 | +VerboseLog: 2 |
| 27 | +ForeGround: 1 |
| 28 | +# PidFile: /var/run/apt-cacher-ng/pid |
| 29 | +# Offlinemode: 0 |
| 30 | +# ForceManaged: 0 |
| 31 | +ExTreshold: 8 |
| 32 | +# ExAbortOnProblems: 1 |
| 33 | +# ExSuppressAdminNotification: 1 |
| 34 | +# StupidFs: 0 |
| 35 | +# ForwardBtsSoap: 1 |
| 36 | +# DnsCacheSeconds: 1800 |
| 37 | +# MaxStandbyConThreads: 8 |
| 38 | +MaxConThreads: 120 |
| 39 | +# |
| 40 | +# - static data that doesn't change silently ont he server (PFilePattern) |
| 41 | +# - volatile data that can be changed like every hour (VFilePattern) |
| 42 | +# - special static data that shared some file names with volatile data, |
| 43 | +# and in doubt should be identified as static (SPfilePattern) |
| 44 | +# - a "whitelist pattern" with hints for the regular expiration job telling |
| 45 | +# to keep the files even if they are not referenced by others, like crypto |
| 46 | +# signatures with which clients begin their downloads (WfilePattern) |
| 47 | +# |
| 48 | +VfilePatternEx: (metalink\?repo=[0-9a-zA-Z-]+&arch=[0-9a-zA-Z_-]+|/\?release=[0-9]+&arch=|repodata/.*\.(xml|sqlite)\.(gz|bz2)|APKINDEX.tar.gz|filelists\.xml\.gz|filelists\.sqlite\.bz2|repomd\.xml|packages\.[a-zA-Z][a-zA-Z]\.gz) |
| 49 | +PfilePatternEx: (/dists/.*/by-hash/.*|\.tgz|\.tar|\.xz|\.bz2|\.rpm|\.apk)$ |
| 50 | +# WfilePatternEx: |
| 51 | +# SPfilePatternEx: |
| 52 | + |
| 53 | +Debug:1 |
| 54 | +# ExposeOrigin: 0 |
| 55 | +# LogSubmittedOrigin: 0 |
| 56 | +# UserAgent: Yet Another HTTP Client/1.2.3p4 |
| 57 | +# RecompBz2: 0 |
| 58 | +# NetworkTimeout: 60 |
| 59 | + |
| 60 | +# DontCacheRequested: linux-.*_10\...\.Custo._i386 |
| 61 | +# DontCacheRequested: 192.168.0 ^10\..* 172.30 |
| 62 | +# DontCacheResolved: ubuntumirror.local.net |
| 63 | +DontCache: mirrorlist.centos.org |
| 64 | + |
| 65 | +# DirPerms: 00755 |
| 66 | +# FilePerms: 00664 |
| 67 | + |
| 68 | +LocalDirs: acng-doc /usr/share/doc/apt-cacher-ng |
| 69 | +# PrecacheFor: debrep/dists/unstable/*/source/Sources* debrep/dists/unstable/*/binary-amd64/Packages* |
| 70 | +# RequestAppendix: X-Tracking-Choice: do-not-track\r\n |
| 71 | +# ConnectProto: v6 v4 |
| 72 | +# KeepExtraVersions: 0 |
| 73 | +# UseWrap: 0 |
| 74 | +FreshIndexMaxAge: 300 |
| 75 | +# AllowUserPorts: 80 |
| 76 | +RedirMax: 6 |
| 77 | +# VfileUseRangeOps is set for fedora volatile files on mirrors that dont to range |
| 78 | +VfileUseRangeOps: 0 |
| 79 | +# PassThroughPattern: private-ppa\.launchpad\.net:443$ |
| 80 | +# PassThroughPattern: .* # this would allow CONNECT to everything |
| 81 | +PassThroughPattern: (download\.docker\.com:443|registry\.npmjs\.org:443|registry\.yarnpkg\.com:443)$ # yarn/npm pkg, cant to http :/ |
| 82 | +# ResponseFreezeDetectTime: 500 |
| 83 | +# ReuseConnections: 1 |
| 84 | +# PipelineDepth: 255 |
| 85 | +# CApath: /etc/ssl/certs |
| 86 | +# CAfile: |
| 87 | +# OptProxyTimeout: -1 |
| 88 | +# MaxDlSpeed: 500 |
| 89 | +# MaxInresponsiveDlSize: 64000 |
| 90 | +# BadRedirDetectMime: text/html |
0 commit comments