UniiemStudio / CTFever

Fantastic toolkit for CTFers and everyone.

Home Page:https://ctfever.uniiem.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG]本地使用docker部署时, 端口扫描不可用

cachexy123 opened this issue · comments

commented

出现Unknown error错误, 是否docker中需要执行其他命令?

请用打开浏览器控制台并再次尝试,检查并提供报错信息。值得一提的是即便是在本地部署,端口扫描等带黄色点标的工具仍然需要网络请求后端接口。

commented

我大概知道原因了

commented

不对, 仍然无法网络请求后端接口, 是不是docker的问题, 我试试其他部署方法

commented

该如何修改后端地址?

该如何修改后端地址?

修改 nuxt.config.js 第 189 行

CTFever/nuxt.config.js

Lines 186 to 195 in 6726b95

proxy: {
'/gateway/': {
// target: process.env.NODE_ENV === 'production' ? 'https://ctfever-service.uniiem.com' : 'http://127.0.0.1:8080',
target: 'https://ctfever-service.uniiem.com',
changeOrigin: true,
pathRewrite: {
'^/gateway/': '/'
}
}
},

经过检查,发现这是一个历史遗留问题。目前 main 分支使用 proxy 代理后端接口,但 docker 镜像仍然使用 nginx 直接提供静态服务。这个问题最近将被修复 (参见 #80)。请等待我们修复。

commented

okay

该问题已经修复 #80
近期更新 README 部署文档