Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

agent 增加 SSL/TLS 选项 #141

Merged
merged 4 commits into from
Nov 6, 2021
Merged

agent 增加 SSL/TLS 选项 #141

merged 4 commits into from
Nov 6, 2021

Conversation

lemoeo
Copy link
Contributor

@lemoeo lemoeo commented Nov 6, 2021

使用 nginx 配置 SSL/TLS证书反代 grpc 连接,需要使用 grpc TLS安全连接。如需开启Cloudflare CDN,需要在Cloudflare域名管理网络中开启gRPC。

@naiba
Copy link
Member

naiba commented Nov 6, 2021

可以在 README 中加入对 grpc 反代的说明吗?
顺便给 Agent 增强配置那里加上这个参数哈

Copy link
Member

@naiba naiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

看下 CI

cmd/agent/main.go Outdated Show resolved Hide resolved
@lemoeo
Copy link
Contributor Author

lemoeo commented Nov 6, 2021

可以在 README 中加入对 grpc 反代的说明吗? 顺便给 Agent 增强配置那里加上这个参数哈

好的

README.md Outdated
ExecStart=/opt/nezha/agent/nezha-agent -s ip-to-dashboard.nai.ba:443 -p xxxxxx --tls
```
- 在 Cloudflare 中将对应的域名解析设置橙色云开启CDN,并在网络选项中启用gRPC。
<details>
Copy link
Member

@naiba naiba Nov 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

</details>

@naiba naiba merged commit 611cabf into nezhahq:master Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants