Preview Link in Workflow Missing Port #8679

Closed
opened 2026-02-21 18:26:59 -05:00 by yindo · 4 comments
Owner

Originally created by @winxuan on GitHub (Feb 26, 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

  1. Change the port mapping in the Docker configuration.
  2. Trigger the workflow.
  3. Click the generated preview link in the workflow.

✔️ Expected Behavior

The preview link should include the port number to ensure it remains valid even if the Docker port mapping is changed.

Actual Behavior

The preview link defaults to port 80, which causes the link to be invalid if a different port is used.

Originally created by @winxuan on GitHub (Feb 26, 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 1. Change the port mapping in the Docker configuration. 2. Trigger the workflow. 3. Click the generated preview link in the workflow. ### ✔️ Expected Behavior The preview link should include the port number to ensure it remains valid even if the Docker port mapping is changed. ### ❌ Actual Behavior The preview link defaults to port 80, which causes the link to be invalid if a different port is used.
yindo closed this issue 2026-02-21 18:26:59 -05:00
Author
Owner

@winxuan commented on GitHub (Feb 26, 2025):

Image

@winxuan commented on GitHub (Feb 26, 2025): ![Image](https://github.com/user-attachments/assets/70e7c28b-07a0-410b-952d-f99a615ce133)
Author
Owner

@dosubot[bot] commented on GitHub (Feb 26, 2025):

@winxuan 你好! 我是Dosu,一个可以帮助你解决bug、回答问题并成为贡献者的机器人。在等待人类维护者的过程中,我可以帮助你。

I found a similar issue that was discussed and resolved. The solution involves modifying the APP_WEB_URL environment variable in your .env file to include the IP and port number. You should set it as APP_WEB_URL=http://ip:port, replacing 'ip' with your server IP and 'port' with your custom port number. Additionally, if there are port conflicts with the default Nginx ports (80 and 443), you can change them by adjusting the EXPOSE_NGINX_PORT and EXPOSE_NGINX_SSL_PORT variables in your .env file to your desired port numbers [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 (Feb 26, 2025): <!-- Greeting --> @winxuan 你好! 我是[Dosu](https://dosu.dev),一个可以帮助你解决bug、回答问题并成为贡献者的机器人。在等待人类维护者的过程中,我可以帮助你。 <!-- Answer --> I found a similar issue that was discussed and resolved. The solution involves modifying the `APP_WEB_URL` environment variable in your `.env` file to include the IP and port number. You should set it as `APP_WEB_URL=http://ip:port`, replacing 'ip' with your server IP and 'port' with your custom port number. Additionally, if there are port conflicts with the default Nginx ports (80 and 443), you can change them by adjusting the `EXPOSE_NGINX_PORT` and `EXPOSE_NGINX_SSL_PORT` variables in your `.env` file to your desired port numbers <sup>[[1]](https://github.com/langgenius/dify/issues/13877)</sup><sup>[[2]](https://github.com/langgenius/dify/issues/14232)</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/d118c09f-f2ff-4f16-bb73-28afd3529973?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/d118c09f-f2ff-4f16-bb73-28afd3529973?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/d118c09f-f2ff-4f16-bb73-28afd3529973?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/d118c09f-f2ff-4f16-bb73-28afd3529973?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/d118c09f-f2ff-4f16-bb73-28afd3529973?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/d118c09f-f2ff-4f16-bb73-28afd3529973?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/d118c09f-f2ff-4f16-bb73-28afd3529973?feedback_type=other)</sup>
Author
Owner
@crazywoola commented on GitHub (Feb 26, 2025): See https://docs.dify.ai/getting-started/install-self-hosted/environments https://www.bilibili.com/video/BV1TiPteoE3D/
Author
Owner

@winxuan commented on GitHub (Feb 26, 2025):

See https://docs.dify.ai/getting-started/install-self-hosted/environments

https://www.bilibili.com/video/BV1TiPteoE3D/

Thank you for your prompt response and the solution you provided. I apologize for not thoroughly reading the instructions initially.

@winxuan commented on GitHub (Feb 26, 2025): > See https://docs.dify.ai/getting-started/install-self-hosted/environments > > https://www.bilibili.com/video/BV1TiPteoE3D/ Thank you for your prompt response and the solution you provided. I apologize for not thoroughly reading the instructions initially.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8679