增加从面板获取节点证书和私钥#34
Open
sizzling9118 wants to merge 1 commit intowyx2685:mainfrom
Open
Conversation
Owner
|
这个你自己用吧不合 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
新增
online证书模式,支持从面板的/api/v1/server/UniProxy/nodecert接口获取 TLS 证书与私钥,并支持基于ETag的变更检测。当
cert_mode=online时,v2node 会在启动前先从面板拉取cert和key,校验证书与私钥是否合法、是否匹配、证书是否过期,以及是否与节点域名匹配,校验通过后写入本地cert_file/key_file,再继续启动。运行过程中还会按60 * PullInterval的周期定时刷新本地缓存证书。该改动仅影响
online模式,不改变现有file、dns、http、self、none等模式的行为。