部署完dify:localhost/install 页面不停转圈圈,报错CROS error
docker/.env 文件中,需要配置如下(docker本机部署的是这样,填写docker 容器 host 的真实IP也可以)
·

解决办法
1、改nginx下面的包
docker ps -q | xargs -n 1 docker inspect --format '{{ .Name }}: {{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}'
把这两个替换成上面的地址
docker-api-1: xxxxxxxxx
docker-web-1: xxxxxxxxx
2、docker/.env 文件中,需要配置如下:
NGINX_HTTPS_ENABLED=true
NGINX_ENABLE_CERTBOT_CHALLENGE=true
把Nginx的跨域请求打开
更多推荐



所有评论(0)