1. 首页
  2. 数据库
  3. 其它
  4. colyseus monitor:Colyseus的Web监视面板 源码

colyseus monitor:Colyseus的Web监视面板 源码

上传者: 2021-04-19 21:39:37上传 ZIP文件 1.07MB 热度 12次
@ colyseus /显示器 网络监控小组 考虑支持Colyseus开发及其对Patreon的支持。 您可以使用Express中间件来启用对监视路由的身份验证,例如express-basic-middleware : import * as basicAuth from "express-basic-auth" ; const basicAuthMiddleware = basicAuth ( { // list of users and passwords users : { "admin" : "admin" , } , // sends WWW-Authenticate header, which will prompt the user to fill // credentials in challenge : true } ) ; app . use ( "/colyseus" , basicAuthMiddleware , monitor ( ) ) ; 设置自定义房间列表列 app . use ( "
下载地址
用户评论