feat: add dep.proxy

This commit is contained in:
zhaoyupeng
2025-11-25 23:08:52 +08:00
parent 62b680dca8
commit 1d3c159c00
2 changed files with 88 additions and 2 deletions

View File

@@ -28,9 +28,7 @@ ExecStartPre=-/usr/local/bin/k0s ctr -n hs-net container rm hs-net
ExecStart=/usr/local/bin/k0s ctr -n hs-net run \
--net-host \
--privileged \
--cgroup host \
--env LD_LIBRARY_PATH=/yizhisec/hs_net \
--env RUSTFLAGS="-C target-cpu=nehalem" \
--env RUST_BACKTRACE=1 \
--mount type=bind,src=/etc/localtime,dst=/etc/localtime,options=rbind:ro \
--mount type=bind,src=/etc/hosts,dst=/etc/hosts,options=rbind:ro \
@@ -43,6 +41,8 @@ ExecStart=/usr/local/bin/k0s ctr -n hs-net run \
--mount type=bind,src=/yizhisec/hs_net/conf,dst=/etc/hs_net,options=rbind:rw \
hub.yizhisec.com/hybridscope/hsnet:release_2.1.0-std hs-net
# --cgroup host \
# --env RUSTFLAGS="-C target-cpu=nehalem" \
# 重启策略
Restart=on-failure
RestartSec=5s