[GH-ISSUE #1025] stub_status 模块在反向代理之后一直 正在加载数据... #547

Closed
opened 2026-02-26 12:08:41 +03:00 by kerem · 8 comments
Owner

Originally created by @ifwwww on GitHub (May 8, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1025

Describe the bug
stub_status 模块在反向代理之后一直 正在加载数据...

To Reproduce
Steps to reproduce the behavior:
就直接无法显示,但是内网ip访问没问题

Screenshots

Image

Image

Info (please complete the following information):

  • Server OS: debian12
  • Server Arch: x86
  • Nginx UI Version: 2.0.0-rc.6
  • Your Browser: chrome
Originally created by @ifwwww on GitHub (May 8, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1025 **Describe the bug** stub_status 模块在反向代理之后一直 正在加载数据... **To Reproduce** Steps to reproduce the behavior: 就直接无法显示,但是内网ip访问没问题 **Screenshots** ![Image](https://github.com/user-attachments/assets/139c5189-4233-4782-b905-57cddd0dfda0) ![Image](https://github.com/user-attachments/assets/c5bb2642-38b4-437c-842e-7600ea97eeb3) **Info (please complete the following information):** - Server OS: debian12 - Server Arch: x86 - Nginx UI Version: 2.0.0-rc.6 - Your Browser: chrome
kerem 2026-02-26 12:08:41 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@0xJacky commented on GitHub (May 8, 2025):

F12 看一下请求,是不是反向代理的配置有问题,导致 SSE 无法正常工作?

<!-- gh-comment-id:2861168022 --> @0xJacky commented on GitHub (May 8, 2025): F12 看一下请求,是不是反向代理的配置有问题,导致 SSE 无法正常工作?
Author
Owner

@ifwwww commented on GitHub (May 8, 2025):

Image
您看下

<!-- gh-comment-id:2861253139 --> @ifwwww commented on GitHub (May 8, 2025): ![Image](https://github.com/user-attachments/assets/617f6f66-472e-4889-9175-baca2be145f5) 您看下
Author
Owner

@ifwwww commented on GitHub (May 8, 2025):

老兄,加载了一会好像就正常了,就是刷新玩都需要加载一会

<!-- gh-comment-id:2861255702 --> @ifwwww commented on GitHub (May 8, 2025): 老兄,加载了一会好像就正常了,就是刷新玩都需要加载一会
Author
Owner

@0xJacky commented on GitHub (May 8, 2025):

Image
点进去看看?

<!-- gh-comment-id:2861255757 --> @0xJacky commented on GitHub (May 8, 2025): ![Image](https://github.com/user-attachments/assets/aa0a3d58-4a18-4045-8f05-dedb8b615710) 点进去看看?
Author
Owner

@0xJacky commented on GitHub (May 8, 2025):

是反向代理的时候会出现这个问题吗?可是我也是用的反向代理,参考一下这个配置样例看看是不是哪里有问题:https://nginxui.com/zh_CN/guide/nginx-proxy-example.html

<!-- gh-comment-id:2861260299 --> @0xJacky commented on GitHub (May 8, 2025): 是反向代理的时候会出现这个问题吗?可是我也是用的反向代理,参考一下这个配置样例看看是不是哪里有问题:https://nginxui.com/zh_CN/guide/nginx-proxy-example.html
Author
Owner

@ifwwww commented on GitHub (May 8, 2025):

是的,老兄,我先参考您的配置看下哪里的问题

<!-- gh-comment-id:2861270527 --> @ifwwww commented on GitHub (May 8, 2025): 是的,老兄,我先参考您的配置看下哪里的问题
Author
Owner

@ifwwww commented on GitHub (May 8, 2025):

location / {
    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_set_header X-Forwarded-Proto $scheme;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
    proxy_pass http://127.0.0.1:9000/;
    proxy_buffering off;
}

老兄,搞定了,就是反代导致的SSE问题,加上一条 proxy_buffering off; 关闭代理缓冲就可以了

<!-- gh-comment-id:2861378769 --> @ifwwww commented on GitHub (May 8, 2025): location / { 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_set_header X-Forwarded-Proto $scheme; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; proxy_pass http://127.0.0.1:9000/; proxy_buffering off; } 老兄,搞定了,就是反代导致的SSE问题,加上一条 `proxy_buffering off;` 关闭代理缓冲就可以了
Author
Owner

@0xJacky commented on GitHub (May 8, 2025):

好的好的,我也更新一下文档

<!-- gh-comment-id:2861384722 --> @0xJacky commented on GitHub (May 8, 2025): 好的好的,我也更新一下文档
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#547
No description provided.