You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Specifies the allowed origins for cross-origin requests to the Web API
WEB_API_CORS_ALLOW_ORIGINS: http://localhost,*
# Specifies the allowed origins for cross-origin requests to the console API
CONSOLE_CORS_ALLOW_ORIGINS: http://localhost,*
# CSRF Cookie settings
# Controls whether a cookie is sent with cross-site requests,
# providing some protection against cross-site request forgery attacks
COOKIE_HTTPONLY: 'true'
COOKIE_SAMESITE: 'None'
COOKIE_SECURE: 'true'
#在 dify目录下,下载 docker-compose.yaml
docker-compose up -d
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/host_mnt/Users/wangbo/soft/docker_app/dify/nginx/nginx.conf" to rootfs at "/etc/nginx/nginx.conf": mount /host_mnt/Users/wangbo/soft/docker_app/dify/nginx/nginx.conf:/etc/nginx/nginx.conf (via /proc/self/fd/9), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
有遇到这个问题的吗,docker-compose up -d时报错ERROR: manifest for semitechnologies/weaviate:1.18.4 not found
手动拉取docker pull semitechnologies/weaviate:1.18.4也不行还是报错Error response from daemon: manifest for semitechnologies/weaviate:1.18.4 not found
Activity
takatost commentedon May 15, 2023
takatost commentedon May 15, 2023
@skywalker512 问题 2 fixed
重新部署前需要拉一下服务端最新镜像
docker pull langgenius/dify-api:latest
iamjoel commentedon May 15, 2023
关于 1
muxuan1978 commentedon May 15, 2023
部署成功了,可以配置保存,但是登录成功后先跳到/apps页面,过一会还是会跳转到登录页面signin
takatost commentedon May 15, 2023
和 cookie 策略可能有关系,有修改过什么配置或者端口、域名吗?
docker-compose.yml 中有这些配置和跨域策略、cookie 策略相关,可以尝试修改
jiangpengwz commentedon May 15, 2023
自定义域名,doker-compse.yml里所有localhost都已经修改为自定义域名。install和登陆时,通过控制台查看网络调用api,发现

也是bug么?
额外信息,修改了docker-compose.yaml中,nginx的外部端口为81,然后通过宿主机的nginx做的域名转发到localhost:81。
takatost commentedon May 15, 2023
Set-Cookie 处有个感叹号,应该和这个相关,可以看下是什么 warning 信息
jiangpengwz commentedon May 15, 2023
破案了,Secure是只能用在https上的。我吧COOKIE_SECURE 改成false就过了,但api502了。。。。
MartialBE commentedon May 15, 2023
http 这样设置:
SameSite 为None时 Secure必须设置。
takatost commentedon May 15, 2023
可能需要重启下 nginx:
takatost commentedon May 15, 2023
默认配置可能太严格了,我改宽松点看看
muxuan1978 commentedon May 15, 2023
改了上面说的Cookie参数后可以了
takatost commentedon May 15, 2023
#23 改成了相对宽松的默认策略。
适用于本地调试用,支持 HTTP/HTTPS 协议,但需要保证前端页面和接口同域。
由于 SameSite=None 必须配合 Secure=true,因此服务端必须为
https协议才能实现跨域访问,可以用在服务端在远程并且提供https协议支持,或者本地单独启动服务端和前端项目(localhost,但不同端口,实测可用,虽然提示 warning)。由于部分第三方集成需要支持回调并带着 cookie 信息,因此不能使用最高的 Strict 策略,因此需要严格限制 CORS 域名,以及设置 cookie 策略为 SameSite=Lax Secure=true。
另外,如果切换域名了,请将 docker-compose.yml 中所有的以下配置项改为新的域名:
wangboak commentedon May 16, 2023
#在 dify目录下,下载 docker-compose.yaml
docker-compose up -d
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/host_mnt/Users/wangbo/soft/docker_app/dify/nginx/nginx.conf" to rootfs at "/etc/nginx/nginx.conf": mount /host_mnt/Users/wangbo/soft/docker_app/dify/nginx/nginx.conf:/etc/nginx/nginx.conf (via /proc/self/fd/9), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
nginx 一直启动不起来,有知道是什么原因吗?
takatost commentedon May 16, 2023
看起来是找不到文件,是否为 docker in docker 模式?没有把 host 目录挂载到 docker 对应目录?
wangboak commentedon May 16, 2023
已经解决了~ 我是直接下载了 docker-compose.yaml 这个文件,并 运行 docker-compose up -d 命令。
并没有git clone 整个项目,并在docker目录下执行此命令。
报错原因是 nginx运行所需的config文件不存在。
renguowen commentedon May 16, 2023
有遇到这个问题的吗,docker-compose up -d时报错ERROR: manifest for semitechnologies/weaviate:1.18.4 not found
手动拉取docker pull semitechnologies/weaviate:1.18.4也不行还是报错Error response from daemon: manifest for semitechnologies/weaviate:1.18.4 not found
takatost commentedon May 16, 2023
https://hub.docker.com/layers/semitechnologies/weaviate/1.18.4/images/sha256-ddad8839318b616eed4b594a55886a5166560c6ac77082f22242436a2226cde6?context=explore
镜像是存在的,可能使用的 dockerhub 镜像的问题
Merge pull request #5 from charli117/embedded-chrome-plugin
Merge langgenius#5 into edit-1.4.1 from feature-jinhua-1.4.1
TODO langgenius#5 (Slice 1 Console Bootstrap) — DONE ✅
fix(gateway): mark dataset entries enabled:true in chat App DSL
perf(knowledge-fs): eliminate graph and publication query hot spots
test(api): resolve review comments with real types instead of test by…