When deploying dify locally, the tool icon cannot be displayed in workflow and agent. The solution is to modify the local nginx configuration to achieve it. #9723

Closed
opened 2026-02-21 18:38:11 -05:00 by yindo · 0 comments
Owner

Originally created by @zhangxl01 on GitHub (Mar 6, 2025).

Originally assigned to: @crazywoola on GitHub.

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

1.0.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Modify the default.conf.template file under /dify/docker/nginx/conf.d,Add two rules:

# Rule 1: Handle application entry (keep /app/{id})
location ~ ^/app/[a-f0-9-]+$ {
# Forward the full path directly (without modifying the URL)
proxy_pass http://api:5001/;
include proxy.conf;
}
# Rule 2: When processing static resource requests (such as images), remove the /app/{id} prefix
location ~ ^/app/[a-f0-9-]+/(console/api/.*)$ {
# Rewrite path: remove /app/{id}, keep the following part
    rewrite ^/app/[a-f0-9-]+/(.*)$ /$1 break;
    proxy_pass http://api:5001;
    include proxy.conf;
}
Image

Restart nginx service

problem solving

Image

✔️ Expected Behavior

Help everyone solve problems

Actual Behavior

May be solved

Originally created by @zhangxl01 on GitHub (Mar 6, 2025). Originally assigned to: @crazywoola on GitHub. ### 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 1.0.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Modify the default.conf.template file under /dify/docker/nginx/conf.d,Add two rules: ``` # Rule 1: Handle application entry (keep /app/{id}) location ~ ^/app/[a-f0-9-]+$ { # Forward the full path directly (without modifying the URL) proxy_pass http://api:5001/; include proxy.conf; } ``` ``` # Rule 2: When processing static resource requests (such as images), remove the /app/{id} prefix location ~ ^/app/[a-f0-9-]+/(console/api/.*)$ { # Rewrite path: remove /app/{id}, keep the following part rewrite ^/app/[a-f0-9-]+/(.*)$ /$1 break; proxy_pass http://api:5001; include proxy.conf; } ``` <img width="473" alt="Image" src="https://github.com/user-attachments/assets/65200492-f593-4519-bf91-799980c7769f" /> Restart nginx service problem solving <img width="853" alt="Image" src="https://github.com/user-attachments/assets/66dd94bc-c12a-4473-a09f-c438791069a6" /> ### ✔️ Expected Behavior Help everyone solve problems ### ❌ Actual Behavior May be solved
yindo added the good first issue label 2026-02-21 18:38:11 -05:00
yindo closed this issue 2026-02-21 18:38:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#9723