mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
🎨 custom http port
This commit is contained in:
parent
4ad8a7e61a
commit
f34f5ab020
@ -21,6 +21,7 @@ C/S 采用 gRPC 通信,客户端通过添加主机生成的单独 Token 上报
|
||||
|
||||
```yaml
|
||||
debug: true
|
||||
httpport: 80
|
||||
github:
|
||||
admin:
|
||||
- 用户 ID,看自己 GitHub 头像链接后面那一串数字
|
||||
|
@ -45,7 +45,7 @@ func initDB() {
|
||||
}
|
||||
|
||||
func main() {
|
||||
go controller.ServeWeb(80)
|
||||
go controller.ServeWeb(dao.Conf.HTTPPort)
|
||||
go rpc.ServeRPC(5555)
|
||||
select {}
|
||||
}
|
||||
|
@ -19,6 +19,7 @@ type Config struct {
|
||||
ClientID string
|
||||
ClientSecret string
|
||||
}
|
||||
HTTPPort uint
|
||||
|
||||
v *viper.Viper
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user