🎨 custom http port

This commit is contained in:
naiba 2020-10-24 21:44:03 +08:00
parent 4ad8a7e61a
commit f34f5ab020
3 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,7 @@ C/S 采用 gRPC 通信,客户端通过添加主机生成的单独 Token 上报
```yaml
debug: true
httpport: 80
github:
admin:
- 用户 ID看自己 GitHub 头像链接后面那一串数字

View File

@ -45,7 +45,7 @@ func initDB() {
}
func main() {
go controller.ServeWeb(80)
go controller.ServeWeb(dao.Conf.HTTPPort)
go rpc.ServeRPC(5555)
select {}
}

View File

@ -19,6 +19,7 @@ type Config struct {
ClientID string
ClientSecret string
}
HTTPPort uint
v *viper.Viper
}