Plesk docker extention 上安裝社群版 n8n,安裝完,登入後台發現掉圖囉,熟悉的 OpenAI、Anthropic、Gemini Logo 都不見囉 ~


如果你也和我一樣,安裝完後這些熟悉的 Logo 都掉圖了,用瀏覽器開發工具看,都是404那你就是缺少了以下必要設定
設定主機反向代理
如果你用 Plesk,登入 Plesk 後台,選擇你安裝 n8n 的網域 > 主機與 DNS > Apache 與 nginx

在 「HTTP 的其它指令」 或 HTTPS 的其它指令」欄位中貼上咒語

Apache 咒語
# 需要模組:proxy, proxy_http, proxy_wstunnel, headers
ProxyPreserveHost On
RequestHeader set X-Forwarded-Proto "https"
# 專門把 WebSocket 的 /rest/push 轉到 ws 後端
ProxyPass /rest/push ws://127.0.0.1:5678/rest/push
ProxyPassReverse /rest/push ws://127.0.0.1:5678/rest/push
# 其他 HTTP 請求走 http 反代
ProxyPass / http://127.0.0.1:5678/
ProxyPassReverse / http://127.0.0.1:5678/
NginX 咒語
location / {
proxy_pass http://127.0.0.1:5678;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
影用按鈕給他按下去,回到 n8n 重整,辣個圖片回來了,開不開心!! 拍手
