shulieTech / Takin

Takin is an Java-based, open-source system designed to measure online environmental performance test for full-links, Especially for microservices. Through Takin, middlewares and applications can identify real online traffic and test traffic, ensure that they enter the right databases.
Apache License 2.0
1.31k stars 330 forks source link

安装docker一键部署非80端口出现跨域问题 #126

Closed yisirman closed 2 years ago

yisirman commented 2 years ago

image

使用如下命令 我使用的不是80端口 而是其他自定义的端口 但是部署成功后的web api请求出现跨域问题 docker run -e APPIP=your IP Address -p 80:80 -p 2181:2181 -p 29900-29999:29900-29999 registry.cn-hangzhou.aliyuncs.com/shulie-takin/takin:v1.0.1

yisirman commented 2 years ago

已解决,非80端口需要进入容器路径/data/apps/dist/web/index.html 手动修改serverUrl的地址 建议文档进行同步修改

zhangz-2021 commented 2 years ago

好的,我们更新一下文档