fscarmen2 / Argo-Nezha-Service-Container

Nezha server over Argo tunnel 使用 Argo 隧道的哪吒服务端
647 stars 397 forks source link

如何屏蔽服务端强制更新? #108

Closed woshichenghaibo closed 2 months ago

woshichenghaibo commented 3 months ago

我现在用的还是Northflank,我想屏蔽掉自动更新,不知道该怎么办?

fscarmen2 commented 3 months ago

改动两个地方 1. https://github.com/fscarmen2/Argo-Nezha-Service-Container/blob/2b5d4bc9f0580f4b9a98ad50951db852fcae4c25/template/backup.sh#L73

在这行最前面加个 # ,即改为 # [[ "$DASHBOARD_LATEST" =~ ^v([0-9]{1,3}\.){2}[0-9]{1,3}$ && "$DASHBOARD_NOW" != "$DASHBOARD_LATEST" ]] && DASHBOARD_UPDATE=true

2. https://github.com/fscarmen2/Argo-Nezha-Service-Container/blob/2b5d4bc9f0580f4b9a98ad50951db852fcae4c25/template/renew.sh#L23 取消 backup 即改为 for i in {renew,restore}; do

上面两点的路径看项目说明

woshichenghaibo commented 1 month ago

得fork一下了?

woshichenghaibo commented 1 month ago

得fork一下了?

woshichenghaibo commented 1 month ago

改动两个地方 1.

https://github.com/fscarmen2/Argo-Nezha-Service-Container/blob/2b5d4bc9f0580f4b9a98ad50951db852fcae4c25/template/backup.sh#L73

在这行最前面加个 # ,即改为 # [[ "$DASHBOARD_LATEST" =~ ^v([0-9]{1,3}\.){2}[0-9]{1,3}$ && "$DASHBOARD_NOW" != "$DASHBOARD_LATEST" ]] && DASHBOARD_UPDATE=true

https://github.com/fscarmen2/Argo-Nezha-Service-Container/blob/2b5d4bc9f0580f4b9a98ad50951db852fcae4c25/template/renew.sh#L23

取消 backup 即改为 for i in {renew,restore}; do 上面两点的路径看项目说明

是需要fork后使用了?

fscarmen2 commented 1 month ago

不是,直接进 linux 里改

woshichenghaibo commented 1 month ago

如果是用的别人的平台那就没有办法改了对吧?我用的northflank,没有修改的入口。。。


发件人: fscarmen2 @.> 发送时间: 2024年10月12日 21:32 收件人: fscarmen2/Argo-Nezha-Service-Container @.> 抄送: woshichenghaibo @.>; Author @.> 主题: Re: [fscarmen2/Argo-Nezha-Service-Container] 如何屏蔽服务端强制更新? (Issue #108)

不是,直接进 linux 里改

― Reply to this email directly, view it on GitHubhttps://github.com/fscarmen2/Argo-Nezha-Service-Container/issues/108#issuecomment-2408567140, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATGWDIIP54EE7Q6DFMV7NWDZ3EQHBAVCNFSM6AAAAABLMRBR3WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBYGU3DOMJUGA. You are receiving this because you authored the thread.Message ID: @.***>

fscarmen2 commented 1 month ago

koyeb和northflank虽然有办法限制更新。不过那些平台都有个问题,不定时重置实例的,虽然有数据备份不会掉探针数据,但已经改好的设置在重置时又会下载最新的版本了。

image
woshichenghaibo commented 1 month ago

那能不能请你直接新增一个变量叫做Autoupdate,让部署的时候选择?


发件人: fscarmen2 @.> 发送时间: 2024年10月14日 10:35 收件人: fscarmen2/Argo-Nezha-Service-Container @.> 抄送: woshichenghaibo @.>; Author @.> 主题: Re: [fscarmen2/Argo-Nezha-Service-Container] 如何屏蔽服务端强制更新? (Issue #108)

koyeb和northflank虽然有办法限制更新。不过那些平台都有个问题,不定时重置实例的,虽然有数据备份不会掉探针数据,但已经改好的设置在重置时又会下载最新的版本了。

image.png (view on web)https://github.com/user-attachments/assets/0fb1fdaa-287f-4ab6-9c1c-b1977e579ead

― Reply to this email directly, view it on GitHubhttps://github.com/fscarmen2/Argo-Nezha-Service-Container/issues/108#issuecomment-2409819179, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATGWDIJBIDEVWZJ75UHPU2DZ3MUVPAVCNFSM6AAAAABLMRBR3WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBZHAYTSMJXHE. You are receiving this because you authored the thread.Message ID: @.***>