Debian Codegraph @

mirrorbits.conf

raw ◀ ▶
1 Debian patch touch this file
1 # vim: set ft=yaml:
2
3 ###################
4 ##### GENERAL #####
5 ###################
6
7 ## Path to the local repository
8 # Repository: /srv/repo
9
10 ## Path to the templates (default autodetect)
•11 # Templates: /usr/share/mirrorbits/templates/
12
13 ## A local path or URL containing the JavaScript used by the templates.
14 ## If this is not set (the default), the JavaScript will just be loaded
15 ## from the usual CDNs. See also `contrib/localjs/fetchfiles.sh`.
16 # LocalJSPath:
17
18 ## Path where to store download logs (comment to disable)
19 # LogDir: /var/log/mirrorbits
20
21 ## Path to the GeoIP2 mmdb databases
•22 # GeoipDatabasePath: /var/lib/GeoIP/
23
24 ## OutputMode can take on the three values:
25 ## - redirect: HTTP redirect to the destination file on the selected mirror
26 ## - json: return a json document for pre-treatment by an application
27 ## - auto: based on the Accept HTTP header
28 # OutputMode: auto
29
30 ## Enable Gzip compression
31 # Gzip: false
32
33 ## Allow redirecting HTTP requests to HTTPS mirrors. If ever a mirror supports
34 ## both, HTTPS is favored. In other words, this setting forces HTTPS when
35 ## possible, thus making the implicit assumption that the client supports it.
36 # AllowHTTPToHTTPSRedirects: true
37
38 ## Interval in seconds between which 2 range downloads of a given file
39 ## from a same origin (hashed (IP, user-agent) couple) are considered
40 ## to be the same download. In particular, download statistics are not
41 ## incremented for this file.
42 # SameDownloadInterval: 600
43
44 ## Host and port to listen on
45 # ListenAddress: :8080
46
47 ## Host and port to listen for the CLI RPC
48 # RPCListenAddress: localhost:3390
49
50 ## Password for restricting access to the CLI (optional)
51 # RPCPassword:
52
53 ####################
54 ##### DATABASE #####
55 ####################
56
57 ## Redis host and port
58 # RedisAddress: 10.0.0.1:6379
59
60 ## Redis password (if any)
61 # RedisPassword: supersecure
62
63 ## Redis database ID (if any)
64 # RedisDB: 0
65
66 ## Redis sentinel name (only if using sentinel)
67 # RedisSentinelMasterName: mirrorbits
68
69 ## List of Redis sentinel hosts (only if using sentinel)
70 # RedisSentinels:
71 # - Host: 10.0.0.1:26379
72 # - Host: 10.0.0.2:26379
73 # - Host: 10.0.0.3:26379
74
75 ############################
76 ##### LOCAL REPOSITORY #####
77 ############################
78
79 ## Relative path to the trace file within the repository (optional).
80 ## The file must contain the number of seconds since epoch and should
81 ## be updated every minute (or so) with a cron on the master repository.
82 # TraceFileLocation: /trace
83
84 ## Interval between two scans of the local repository.
85 ## The repository scan will index new and removed files and collect file
86 ## sizes and checksums.
87 ## This should, more or less, match the frequency where the local repo
88 ## is updated.
89 # RepositoryScanInterval: 5
90
91 ## Enable or disable specific hashing algorithms
92 # Hashes:
93 # SHA256: On
94 # SHA1: Off
95 # MD5: Off
96
97 ###################
98 ##### MIRRORS #####
99 ###################
100
101 ## Maximum number of concurrent mirror synchronization to do (rsync/ftp)
102 # ConcurrentSync: 5
103
104 ## Interval in minutes between mirror scan
105 # ScanInterval: 30
106
107 ## Interval in minutes between mirrors HTTP health checks
108 # CheckInterval: 1
109
110 ## Allow a mirror to issue an HTTP redirect.
111 ## Setting this to true will disable the mirror if a redirect is detected.
112 # DisallowRedirects: false
113
114 ## Disable a mirror if an active file is missing (HTTP 404)
115 # DisableOnMissingFile: false
116
117 ## Allow some files to be outdated on the mirrors.
118 ## When the requested file matches any of the rules below, the file is allowed
119 ## to be outdated at most Minutes minutes, and the file size is not checked.
120 ## This might be desirable if the repository contains some files that are
121 ## updated in-place, to prevent Mirrorbits from redirecting all the traffic to
122 ## fallback mirrors for those files when they are modified.
123 # AllowOutdatedFiles:
124 # - Prefix: /dists/
125 # Minutes: 540
126
127 ## Adjust the weight/range of the geographic distribution
128 # WeightDistributionRange: 1.5
129
130 ## Maximum number of alternative links to return in the HTTP header
131 # MaxLinkHeaders: 10
132
133 ## Automatically fix timezone offsets.
134 ## Enable this if one or more mirrors are always excluded because their
135 ## last-modification-time mismatch. This option will try to guess the
136 ## offset and adjust the mod time accordingly.
137 ## Affected mirrors will need to be rescanned after enabling this feature.
138 # FixTimezoneOffsets: false
139
140 ## List of mirrors to use as fallback which will be used in case mirrorbits
141 ## is unable to answer a request because the database is unreachable.
142 ## Note: Mirrorbits will redirect to one of these mirrors based on the user
143 ## location but won't be able to know if the mirror has the requested file.
144 ## Therefore only put your most reliable and up-to-date mirrors here.
145 ## Note: Omit the scheme if you want to support both http and https.
146 # Fallbacks:
147 # - URL: https://fallback1.mirror/repo/
148 # CountryCode: fr
149 # ContinentCode: eu
150 # - URL: https://fallback2.mirror/repo/
151 # CountryCode: us
152 # ContinentCode: na