优化nginx,支持插件

This commit is contained in:
wangbo 2025-08-31 01:16:43 +08:00
parent a698982476
commit 3174224577

View File

@ -79,6 +79,15 @@ server {
proxy_set_header Host $host;
}
location /plugins/ {
proxy_pass http://127.0.0.1:3020/plugins/;
proxy_redirect off;
proxy_set_header X-Original-Prefix '/plugins';
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
}
location /socket.io {
proxy_pass http://127.0.0.1:3002;
proxy_read_timeout 300s;