Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web服务如何变更端口号?或者改成nginx进行反向代理 #102

Open
PostgreSQL1989 opened this issue Apr 2, 2021 · 3 comments

Comments

@PostgreSQL1989
Copy link

我这边想通过nginx反向代理web服务,发现会报错。
此外,web控制台只能是IP:32000的形式吗?
我加了域名解析,通过域名:32000访问还是报错。
我把端口改成80,通过IP访问也是同样的报错。
请问如何变更配置?
image

@vipwangtian
Copy link

https://github.com/Qihoo360/doraemon#quickly-start
@PostgreSQL1989 仔细看这里,app.conf和config.js是需要修改的

@PostgreSQL1989
Copy link
Author

PostgreSQL1989 commented May 8, 2021

https://github.com/Qihoo360/doraemon#quickly-start
@PostgreSQL1989 仔细看这里,app.conf和config.js是需要修改的

感谢你的回复,我更改的是这两个文件,麻烦你帮忙看看,谢谢。
我把IP变更成为域名,错误提示跟issue一样。

doraemon/deployments/docker-compose/conf/app.conf
WebUrl="http://alert.xxxx.com:32000"

doraemon/deployments/docker-compose/conf/config.js
baseURL: 'http://alert.xxxx.com:8080',

@yc550370460
Copy link

yc550370460 commented Feb 20, 2023

config.js 配置成你的域名
nginx:
location ^/ {
proxy_pass http://xxxxx:32000;
}
location ^
/api/v1 {
proxy_pass http://xxxxx:8080;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants