Accessing /embed.min.js returns a 404 error, 【Embed on website】failed。 Version 0.15.3. #8937

Closed
opened 2026-02-21 18:28:42 -05:00 by yindo · 2 comments
Owner

Originally created by @songlin1994 on GitHub (Mar 3, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image Image

docker-web-1
There are files in the container

Image

nginx config

Image

✔️ Expected Behavior

Can access /embed.min.js.

Actual Behavior

No response

Originally created by @songlin1994 on GitHub (Mar 3, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.15.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce <img width="1406" alt="Image" src="https://github.com/user-attachments/assets/b7c3012a-4d0f-46a1-a2cd-6fe2ce3792ad" /> <img width="641" alt="Image" src="https://github.com/user-attachments/assets/dcb108cb-36a9-47d1-805d-ea50f97ec913" /> docker-web-1 There are files in the container <img width="1228" alt="Image" src="https://github.com/user-attachments/assets/91e65f7c-8922-4f14-86ce-087c72a891cf" /> nginx config ![Image](https://github.com/user-attachments/assets/af147334-ad9b-436e-832c-3925f8ce1079) ### ✔️ Expected Behavior Can access /embed.min.js. ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:28:42 -05:00
yindo closed this issue 2026-02-21 18:28:42 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 3, 2025):

I found a similar issue that was resolved by updating the Nginx configuration. Specifically, you need to modify the default.conf.template file in the docker/nginx/conf.d/ directory. Change line 32 from location /e { to location /e/ { by adding a trailing slash. This change has been reported to resolve the 404 error for embed.min.js [1][2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Mar 3, 2025): <!-- Answer --> I found a similar issue that was resolved by updating the Nginx configuration. Specifically, you need to modify the `default.conf.template` file in the `docker/nginx/conf.d/` directory. Change line 32 from `location /e {` to `location /e/ {` by adding a trailing slash. This change has been reported to resolve the 404 error for `embed.min.js` <sup>[[1]](https://github.com/langgenius/dify/issues/14492)</sup><sup>[[2]](https://github.com/langgenius/dify/issues/14077)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/435b9144-4e5d-48cc-bf19-32a9d4356065?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/435b9144-4e5d-48cc-bf19-32a9d4356065?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/435b9144-4e5d-48cc-bf19-32a9d4356065?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/435b9144-4e5d-48cc-bf19-32a9d4356065?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/435b9144-4e5d-48cc-bf19-32a9d4356065?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/435b9144-4e5d-48cc-bf19-32a9d4356065?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/435b9144-4e5d-48cc-bf19-32a9d4356065?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (Mar 3, 2025):

Duplicated

@crazywoola commented on GitHub (Mar 3, 2025): Duplicated
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8937