
This adds support for blacklisting the mirroring of certain packages. This requires a very new bandersnatch running under python3. Change-Id: I0de38d79947bbae10650879b0fbdc77db0131918
53 lines
1.8 KiB
Plaintext
53 lines
1.8 KiB
Plaintext
[mirror]
|
|
; The directory where the mirror data will be stored.
|
|
directory = <%= @mirror_root -%>
|
|
|
|
; The PyPI server which will be mirrored.
|
|
; master = https://testpypi.python.org
|
|
; scheme for PyPI server MUST be https
|
|
master = https://pypi.python.org
|
|
|
|
; The network socket timeout to use for all connections. This is set to a
|
|
; somewhat aggressively low value: rather fail quickly temporarily and re-run
|
|
; the client soon instead of having a process hang infinitely and have TCP not
|
|
; catching up for ages.
|
|
timeout = 10
|
|
|
|
; Number of worker threads to use for parallel downloads.
|
|
; Recommendations for worker thread setting:
|
|
; - leave the default of 3 to avoid overloading the pypi master
|
|
; - official servers located in data centers could run 20 workers
|
|
; - anything beyond 50 is probably unreasonable and avoided by bandersnatch
|
|
workers = 3
|
|
|
|
<% if @hash_index == true -%>
|
|
hash-index = true
|
|
<% end -%>
|
|
|
|
; Whether to stop a sync quickly after an error is found or whether to continue
|
|
; syncing but not marking the sync as successful. Value should be "true" or
|
|
; "false".
|
|
stop-on-error = false
|
|
|
|
; Whether or not files that have been deleted on the master should be deleted
|
|
; on the mirror, too.
|
|
; IMPORTANT: if you are running an official mirror than you *need* to leave
|
|
; this on.
|
|
delete-packages = true
|
|
|
|
[statistics]
|
|
; A glob pattern matching all access log files that should be processed to
|
|
; generate daily access statistics that will be aggregated on the master PyPI.
|
|
access-log-pattern = /var/log/apache2/pypi.*openstack.org_access.*
|
|
|
|
<% if not @package_blacklist.empty? -%>
|
|
; blacklist
|
|
; List of PyPI packages not to sync - Useful if malicious packages are mirrored
|
|
[blacklist]
|
|
packages =
|
|
<% @package_blacklist.each do |package| -%>
|
|
<%= package %>
|
|
<% end -%>
|
|
<% end -%>
|
|
; vim: set ft=cfg:
|