Skip to content
New issue

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

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

Already on GitHub? # to your account

可否增加https 证书自定义? #195

Open
ys1231 opened this issue Jan 19, 2024 · 1 comment
Open

可否增加https 证书自定义? #195

ys1231 opened this issue Jan 19, 2024 · 1 comment

Comments

@ys1231
Copy link

ys1231 commented Jan 19, 2024

var err error if gcfg.Key != "" && gcfg.Cert != "" { err = srv.ListenAndServeTLS(gcfg.Cert, gcfg.Key) } else { err = srv.ListenAndServe() }
看大佬写了但是 实际没有去用上面的证书相关代码,可否使用环境变量去控制赋值或者指定路径读取如果失败再走http,这样docker 可以直接映射进去,就方便很多了。

@codeskyblue
Copy link
Owner

Docker可以封装一个shell脚本

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants