-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig.default.toml
187 lines (161 loc) · 3.51 KB
/
config.default.toml
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
[log]
# The path which log file is saved
log_path = ""
# log format encoder, see https://docs.rs/log4rs/1.2.0/log4rs/append/file/struct.FileAppenderDeserializer.html#configuration
# for more information
encoder = "{d}:{l} - {m}{n}"
# log level
level = "info"
# log file will be deleted and regenerated if exceeded the threshold, unit is MB
limit = 100
[crates]
# The path which the crates index file is saved
index_path = ""
# The path which the crates file is saved
crates_path = ""
# download index from domain
index_domain = "https://github.com/rust-lang/crates.io-index.git"
# download crates from domain
domain = "https://static.crates.io/crates"
# Number of crates download threads
download_threads = 16
# When providing services, freighter will retrieve files from the specified location in the following sequence and
# return them to the requesting client. localhost means read from local filesystem
serve_domains = [
"https://rust-proxy.obs.cn-east-3.myhuaweicloud.com",
# "localhost",
# "https://rsproxy.cn",
# "https://static.crates.io",
]
#(optional) set up a git local path you want to serve
serve_index = "/opt/rust/"
[rustup]
# The path which the rustup file is saved
rustup_path = ""
# The path which the rustup release sha file is saved
dist_path = ""
# which domain to download rustup from
domain = "https://static.rust-lang.org"
# Number of rust toolchain download threads
download_threads = 16
# released rust versions that you want to sync with
sync_stable_versions = [
"1.9",
"1.10",
"1.11",
"1.12",
"1.12.1",
"1.13",
"1.14",
"1.15",
"1.15.1",
"1.16",
"1.17",
"1.18",
"1.19",
"1.20",
"1.21",
"1.22",
"1.22.1",
"1.23",
"1.24",
"1.24.1",
"1.25",
"1.26",
"1.26.1",
"1.26.2",
"1.27",
"1.27.1",
"1.27.2",
"1.28",
"1.29",
"1.29.1",
"1.29.2",
"1.30",
"1.30.1",
"1.31",
"1.31.1",
"1.32",
"1.33",
"1.34",
"1.34.1",
"1.34.2",
"1.35",
"1.36",
"1.37",
"1.38",
"1.39",
"1.40",
"1.41",
"1.41.1",
"1.42",
"1.43",
"1.43.1",
"1.44",
"1.44.1",
"1.45",
"1.45.1",
"1.45.2",
"1.46",
"1.47",
"1.48",
"1.49",
"1.50",
"1.51",
"1.52",
"1.52.1",
"1.53",
"1.54",
"1.55",
"1.56",
"1.56.1",
"1.57",
"1.58",
"1.58.1",
"1.59",
"1.60",
"1.61",
"1.62",
"1.62.1",
"1.63",
"1.64",
"1.65",
"1.66",
"1.66.1",
"1.67",
"1.67.1",
"1.68",
"1.68.1",
"1.68.2",
"1.69",
"1.70",
"1.71",
"1.71.1",
"1.72",
"1.72.1",
"1.73",
"1.74",
"1.74.1",
"1.75",
]
# days you want to keep for historical nightly version
sync_nightly_days = 30
# days you want to keep for historical beta version
sync_beta_days = 30
# When providing services, freighter will retrieve files from the specified location in the following sequence and
# return them to the requesting client. localhost means read from local filesystem
serve_domains = [
"https://rust-proxy.obs.cn-east-3.myhuaweicloud.com",
# "localhost",
# "https://rsproxy.cn",
# "https://static.rust-lang.org",
]
# (optional) set this value to sync historical nightly and beta version
history_version_start_date = "2016-03-01"
[proxy]
# use true flag to enable proxy
enable = false
# used for git index proxy
git_index_proxy = "http://127.0.0.1:6780"
# used for crates and toolchain download proxy
download_proxy = "http://127.0.0.1:6780"