1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# This is a Panamax mirror. It is a self-contained directory made to be easily copied
# to an offline network or machine via rsync, USB, or another method.
# When offline, Panamax also includes a "serve" command that can be used to serve
# rustup and cargo clients from the mirror. This will also give setup instructions
# on the homepage.
[]
# Global mirror settings.
# Number of download retries before giving up.
= 5
# Contact information for the user agent.
# This is entirely optional, and is not required for the crates.io CDN.
# You may want to set this if you are mirroring from somewhere else.
# contact = "your@email.com"
[]
# These are the configuration parameters for the rustup half of the mirror.
# This will download the rustup-init files, as well as all components needed
# to run Rust on a machine.
# Perform rustup synchronization. Set this to false if you only want to mirror crates.io.
= true
# Whether to mirror XZ archives. These archives are more efficiently compressed
# than the GZ archives, and rustup uses them by default.
= true
# Whether to mirror GZ archives, for further backwards compatibility with rustup.
= false
# Number of downloads that can be ran in parallel.
= 16
# Where to download rustup files from.
= "https://static.rust-lang.org"
# How many historical versions of Rust to keep.
# Setting these to 1 will keep only the latest version.
# Setting these to 2 or higher will keep the latest version, as well as historical versions.
# Setting these to 0 will stop Panamax from downloading the release entirely.
# Removing the line will keep all release versions.
= 1
= 1
= 1
# Pinned versions of Rust to download and keep alongside latest stable/beta/nightly
# Version specifiers should be in the rustup toolchain format:
#
# <channel>[-<date>][-<host>]
#
# <channel> = stable|beta|nightly|<major.minor>|<major.minor.patch>
# <date> = YYYY-MM-DD
# <host> = <target-triple>
#
# e.g. valid versions could be "1.42", "1.42.0", and "nightly-2014-12-18"
# Uncomment the following lines to pin extra rust versions:
#pinned_rust_versions = [
# "1.42"
#]
# UNIX platforms to include in the mirror
# Uncomment the following lines to limit which platforms get downloaded.
# This affects both rustup-inits and components.
# platforms_unix = [
# "arm-unknown-linux-gnueabi",
# "x86_64-unknown-linux-gnu",
# "x86_64-unknown-linux-musl",
# ]
# Windows platforms to include in the mirror
# Uncomment the following lines to limit which platforms get downloaded.
# This affects both rustup-inits and components.
# platforms_windows = [
# "x86_64-pc-windows-gnu",
# "x86_64-pc-windows-msvc",
# ]
# Whether to download the rustc-dev component.
# This component isn't always needed, so setting this to false can save lots of space.
= false
[]
# These are the configuration parameters for the crates.io half of the mirror.
# This will download the crates.io-index, as well as the crates themselves.
# Once downloaded, it will then (optionally) rewrite the config.json to point to your mirror.
# Perform crates synchronization. Set this to false if you only want to mirror rustup.
= true
# Number of downloads that can be ran in parallel.
= 64
# Where to download the crates from.
# The default, "https://crates.io/api/v1/crates", will actually instead use the corresponding
# url at https://static.crates.io in order to avoid a redirect and rate limiting
= "https://crates.io/api/v1/crates"
# Where to clone the crates.io-index repository from.
= "https://github.com/rust-lang/crates.io-index"
# URL where this mirror's crates directory can be accessed from.
# Used for rewriting crates.io-index's config.json.
# Remove this parameter to perform no rewriting.
# If removed, the `panamax rewrite` command can be used later.
= "http://panamax.internal/crates"