GithubHelp home page GithubHelp logo

求助修改EIP不生效 about think HOT 3 CLOSED

fantasticit avatar fantasticit commented on May 21, 2024
求助修改EIP不生效

from think.

Comments (3)

lingwf95 avatar lingwf95 commented on May 21, 2024 1

没有找到如何修改这个跨域配置。所以进入docker容器进行修改后能够正常访问

docker exec -it thinkdoc sh
# cd /app
vi config/prod.yaml
# 替换 'x.x.x.x' 为访问的IP


# 退出容器, 重启容器
docker-composer restart

image

from think.

Jonnyan404 avatar Jonnyan404 commented on May 21, 2024

如果首次未修改,删除映射目录下的配置文件,
然后
按二次更新操作

from think.

lingwf95 avatar lingwf95 commented on May 21, 2024

映射目录 指的是哪个目录?

我直接修改了docker-compose.yml 中的 EIP 参数,再 docker-compose build ,请求连接生效了,但是接口的跨域配置还是 x.x.x.x。
image

在前端页面域名跟接口域名不是同一个需要怎么配置?

from think.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.