codeskyblue / codeskyblue/gohttpserver

可否增加https 证书自定义?

Open
#195 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.8k
Forks
583
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the server setup containing gcfg.Key, gcfg.Cert, srv.ListenAndServeTLS, and srv.ListenAndServe. Trace how configuration is populated, then add the requested environment-variable or path-based certificate handling and verify that HTTP remains the fallback when certificate loading fails.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.