ComfyUI_frontend
ComfyUI_frontend copied to clipboard
[Bug]: When using Nginx as a reverse proxy with a URL prefix, the sample template is unable to display and retrieve the corresponding workflow JSON due to the use of absolute paths.
Frontend Version
v1.3.11
Expected Behavior
When using Nginx as a reverse proxy with a URL prefix configured, the sample template work correctly.
Actual Behavior
Steps to Reproduce
- Use a configuration similar to the following to set up Nginx as a reverse proxy
location /comfyui-test/ {
proxy_pass http://xx.xx.xx.xx:8188/;
client_max_body_size 20M;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_hide_header X-Powered-By;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
- Access ComfyUI using the proxy URL and attempt to use the template feature.
Debug Logs
ignore
Browser Logs
url https://xx/templates/default.jpg 404
url https://xx/templates/default.json 404
What browsers do you use to access the UI ?
Google Chrome
Other
No response