Skip to content

Commit e9234f5

Browse files
committed
fix:增设屏蔽CDN设置
1 parent 73e39f7 commit e9234f5

18 files changed

Lines changed: 306 additions & 5 deletions

File tree

docs/en/guide/containerd/containerd_qa.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,20 @@ yum install -y lxcfs # CentOS/RHEL
9797
Disk limits require xfs or btrfs snapshotter support. The default overlay snapshotter does not support container-level disk limits.
9898

9999
For disk limits, refer to the docker or incus solution documentation.
100+
101+
## No-CDN mode (WITHOUTCDN)
102+
103+
If your network is stable and useful, or you want to fully disable CDN acceleration, set this before running scripts:
104+
105+
```shell
106+
export WITHOUTCDN=TRUE
107+
```
108+
109+
You can also apply it to a single command only:
110+
111+
```shell
112+
WITHOUTCDN=TRUE
113+
```
114+
115+
When enabled, scripts will no longer try CDN acceleration URLs during execution.
116+

docs/en/guide/docker/docker_qa.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,20 @@ Remove a specific image
6464

6565
```
6666
docker rmi <image_name_or_ID>
67-
```
67+
```
68+
## No-CDN mode (WITHOUTCDN)
69+
70+
If your network is stable and useful, or you want to fully disable CDN acceleration, set this before running scripts:
71+
72+
```shell
73+
export WITHOUTCDN=TRUE
74+
```
75+
76+
You can also apply it to a single command only:
77+
78+
```shell
79+
WITHOUTCDN=TRUE
80+
```
81+
82+
When enabled, scripts will no longer try CDN acceleration URLs during execution.
83+

docs/en/guide/incus/incus_qa.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,20 @@ Removes ```cron``` tasks, script files, log files, and count files.
7474

7575
[kuroit](https://my.kuroit.com/aff.php?aff=5) Phoenix, USA regular
7676

77-
[datalix](https://t.me/+UHVoo2U4VyA5NTQ1/338) German AMD Promotions
77+
[datalix](https://t.me/+UHVoo2U4VyA5NTQ1/338) German AMD Promotions
78+
## No-CDN mode (WITHOUTCDN)
79+
80+
If your network is stable and useful, or you want to fully disable CDN acceleration, set this before running scripts:
81+
82+
```shell
83+
export WITHOUTCDN=TRUE
84+
```
85+
86+
You can also apply it to a single command only:
87+
88+
```shell
89+
WITHOUTCDN=TRUE
90+
```
91+
92+
When enabled, scripts will no longer try CDN acceleration URLs during execution.
93+

docs/en/guide/kubevirt/kubevirt_qa.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,20 @@ International
100100
bash <(curl -sSL https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/scripts/kubevirtuninstall.sh)
101101
bash <(curl -sSL https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/kubevirtinstall.sh)
102102
```
103+
104+
## No-CDN mode (WITHOUTCDN)
105+
106+
If your network is stable and useful, or you want to fully disable CDN acceleration, set this before running scripts:
107+
108+
```shell
109+
export WITHOUTCDN=TRUE
110+
```
111+
112+
You can also apply it to a single command only:
113+
114+
```shell
115+
WITHOUTCDN=TRUE
116+
```
117+
118+
When enabled, scripts will no longer try CDN acceleration URLs during execution.
119+

docs/en/guide/lxd/lxd_qa.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,20 @@ curl -L https://raw.githubusercontent.com/oneclickvirt/incus/main/extra_scripts/
5656
[kuroit](https://my.kuroit.com/aff.php?aff=5) Phoenix, USA regular
5757

5858
[datalix](https://t.me/+UHVoo2U4VyA5NTQ1/338) German AMD Promotions
59+
60+
## No-CDN mode (WITHOUTCDN)
61+
62+
If your network is stable and useful, or you want to fully disable CDN acceleration, set this before running scripts:
63+
64+
```shell
65+
export WITHOUTCDN=TRUE
66+
```
67+
68+
You can also apply it to a single command only:
69+
70+
```shell
71+
WITHOUTCDN=TRUE
72+
```
73+
74+
When enabled, scripts will no longer try CDN acceleration URLs during execution.
75+

docs/en/guide/oneclickvirt/oneclickvirt_qa.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,4 +153,20 @@ If traffic is flowing in or out, inspect actual connection states with:
153153

154154
```shell
155155
conntrack -L | grep <port>
156-
```
156+
```
157+
## No-CDN mode (WITHOUTCDN)
158+
159+
If your network is stable and useful, or you want to fully disable CDN acceleration, set this before running scripts:
160+
161+
```shell
162+
export WITHOUTCDN=TRUE
163+
```
164+
165+
You can also apply it to a single command only:
166+
167+
```shell
168+
WITHOUTCDN=TRUE
169+
```
170+
171+
When enabled, scripts will no longer try CDN acceleration URLs during execution.
172+

docs/en/guide/podman/podman_qa.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,20 @@ Manual DNS fix:
9999
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
100100
echo "nameserver 1.1.1.1" >> /etc/resolv.conf
101101
```
102+
103+
## No-CDN mode (WITHOUTCDN)
104+
105+
If your network is stable and useful, or you want to fully disable CDN acceleration, set this before running scripts:
106+
107+
```shell
108+
export WITHOUTCDN=TRUE
109+
```
110+
111+
You can also apply it to a single command only:
112+
113+
```shell
114+
WITHOUTCDN=TRUE
115+
```
116+
117+
When enabled, scripts will no longer try CDN acceleration URLs during execution.
118+

docs/en/guide/pve/pve_qa.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,3 +273,20 @@ curl -sSLk 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_rei
273273

274274
[Google cloud platform - GCP](https://console.cloud.google.com/) AMD servers
275275

276+
277+
## No-CDN mode (WITHOUTCDN)
278+
279+
If your network is stable and useful, or you want to fully disable CDN acceleration, set this before running scripts:
280+
281+
```shell
282+
export WITHOUTCDN=TRUE
283+
```
284+
285+
You can also apply it to a single command only:
286+
287+
```shell
288+
WITHOUTCDN=TRUE
289+
```
290+
291+
When enabled, scripts will no longer try CDN acceleration URLs during execution.
292+

docs/en/guide/qemu/qemu_qa.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,20 @@ Uninstall first, then reinstall:
8686
bash <(curl -sSL https://raw.githubusercontent.com/oneclickvirt/qemu/main/scripts/qemuuninstall.sh)
8787
bash <(curl -sSL https://raw.githubusercontent.com/oneclickvirt/qemu/main/qemuinstall.sh)
8888
```
89+
90+
## No-CDN mode (WITHOUTCDN)
91+
92+
If your network is stable and useful, or you want to fully disable CDN acceleration, set this before running scripts:
93+
94+
```shell
95+
export WITHOUTCDN=TRUE
96+
```
97+
98+
You can also apply it to a single command only:
99+
100+
```shell
101+
WITHOUTCDN=TRUE
102+
```
103+
104+
When enabled, scripts will no longer try CDN acceleration URLs during execution.
105+

docs/guide/containerd/containerd_qa.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,20 @@ yum install -y lxcfs # CentOS/RHEL
115115
磁盘限制需要 xfs 或 btrfs snapshotter 支持,默认 overlay snapshotter 不支持容器级磁盘限制。
116116

117117
如需磁盘限制,请查看 docker 方案或 incus 方案中对应的说明。
118+
119+
## 无 CDN 模式(WITHOUTCDN)
120+
121+
如果服务器网络非常好无需加速,或希望完全禁用 CDN 加速,可在执行脚本前设置:
122+
123+
```shell
124+
export WITHOUTCDN=TRUE
125+
```
126+
127+
也可以只对单次命令生效:
128+
129+
```shell
130+
WITHOUTCDN=TRUE
131+
```
132+
133+
设置后,脚本执行过程中将不再尝试使用 CDN 加速地址。
134+

0 commit comments

Comments
 (0)