mirror of
https://github.com/go-kratos/kratos.git
synced 2025-09-16 09:16:35 +02:00
Update config-paladin.md
This commit is contained in:
@@ -66,7 +66,7 @@ func main() {
|
|||||||
|
|
||||||
# server.go
|
# server.go
|
||||||
func NewServer() {
|
func NewServer() {
|
||||||
# 默认配置用nil
|
# 默认配置用nil,这时读取HTTP/gRPC构架中的flag或者环境变量(可能是docker注入的环境变量,默认端口:8000/9000)
|
||||||
engine := bm.DefaultServer(nil)
|
engine := bm.DefaultServer(nil)
|
||||||
|
|
||||||
# 除非自己要替换了配置,用http.toml
|
# 除非自己要替换了配置,用http.toml
|
||||||
|
Reference in New Issue
Block a user