[GH-ISSUE #1066] SSE #575

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

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

不管是用包启动,docker,一键安装,自检的时候都过不了这个 : SSE:支持通过 Server-Sent Events 协议与后端通信。如果您的 Nginx UI 是通过 Nginx 反向代理使用的,请参考此链接编写相应的配置文件:https://nginxui.com/guide/nginx-proxy-example.html

Originally created by @atie2001 on GitHub (May 21, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1066 不管是用包启动,docker,一键安装,自检的时候都过不了这个 : SSE:支持通过 Server-Sent Events 协议与后端通信。如果您的 Nginx UI 是通过 Nginx 反向代理使用的,请参考此链接编写相应的配置文件:https://nginxui.com/guide/nginx-proxy-example.html
kerem 2026-02-26 12:08:47 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

有做反向代理吗

<!-- gh-comment-id:2896579047 --> @0xJacky commented on GitHub (May 21, 2025): 有做反向代理吗
Author
Owner

@atie2001 commented on GitHub (May 21, 2025):

For more information on configuration, see:

* Official English Documentation: http://nginx.org/en/docs/

* Official Russian Documentation: http://nginx.org/ru/docs/

user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;

Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.

include /usr/share/nginx/modules/*.conf;

events {
worker_connections 1024;
}

http {
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

access_log  /var/log/nginx/access.log  main;

sendfile            on;
tcp_nopush          on;
tcp_nodelay         on;
keepalive_timeout   65;
types_hash_max_size 4096;

include             /etc/nginx/mime.types;
default_type        application/octet-stream;

# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
# for more information.
include /etc/nginx/conf.d/*.conf;

server {
listen 80;
listen [::]:80;

server_name     atie.com;
return 301 https://$host$request_uri;

}

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}

server {
listen 443 ssl;
listen [::]:443 ssl;
#http2 on;

server_name         atie.com;

ssl_certificate     /opt/src/cert/atie.com.pem;
ssl_certificate_key /opt/src/cert/atie.com.key;

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/;
}

}

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;

}

<!-- gh-comment-id:2896668592 --> @atie2001 commented on GitHub (May 21, 2025): # For more information on configuration, see: # * Official English Documentation: http://nginx.org/en/docs/ # * Official Russian Documentation: http://nginx.org/ru/docs/ user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /run/nginx.pid; # Load dynamic modules. See /usr/share/doc/nginx/README.dynamic. include /usr/share/nginx/modules/*.conf; events { worker_connections 1024; } http { log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 4096; include /etc/nginx/mime.types; default_type application/octet-stream; # Load modular configuration files from the /etc/nginx/conf.d directory. # See http://nginx.org/en/docs/ngx_core_module.html#include # for more information. include /etc/nginx/conf.d/*.conf; server { listen 80; listen [::]:80; server_name atie.com; return 301 https://$host$request_uri; } map $http_upgrade $connection_upgrade { default upgrade; '' close; } server { listen 443 ssl; listen [::]:443 ssl; #http2 on; server_name atie.com; ssl_certificate /opt/src/cert/atie.com.pem; ssl_certificate_key /opt/src/cert/atie.com.key; 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/; } } include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; }
Author
Owner

@dengliyao commented on GitHub (May 21, 2025):

打开页面时候,不要等它检查完,直接点下一步好像就可以。我刚才也是出现这个问题

<!-- gh-comment-id:2897213191 --> @dengliyao commented on GitHub (May 21, 2025): 打开页面时候,不要等它检查完,直接点下一步好像就可以。我刚才也是出现这个问题
Author
Owner

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

在 location / {} 中添加

proxy_cache off;
proxy_buffering off;
<!-- gh-comment-id:2897281591 --> @0xJacky commented on GitHub (May 21, 2025): 在 location / {} 中添加 ``` proxy_cache off; proxy_buffering off; ```
Author
Owner

@jsscore commented on GitHub (May 21, 2025):

我并未配置反向代理,也遇到了SSE检查不通过的情况。
在 location / {} 中添加配置检查依旧无法通过。
proxy_cache off; proxy_buffering off;
不等检查结束,直接点下一步进去后,在系统-自我检查中,SSE部分显示检查通过。

环境:
nginx 1.16.1
配置文件默认未作任何修改,通过nginxui修复了部分配置

<!-- gh-comment-id:2897412168 --> @jsscore commented on GitHub (May 21, 2025): 我并未配置反向代理,也遇到了SSE检查不通过的情况。 在 location / {} 中添加配置检查依旧无法通过。 `proxy_cache off; proxy_buffering off;` 不等检查结束,直接点下一步进去后,在系统-自我检查中,SSE部分显示检查通过。 环境: nginx 1.16.1 配置文件默认未作任何修改,通过nginxui修复了部分配置
Author
Owner

@majiajun7 commented on GitHub (May 22, 2025):

This problem still exists

<!-- gh-comment-id:2900494138 --> @majiajun7 commented on GitHub (May 22, 2025): This problem still exists
Author
Owner

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

Hi, @dengliyao @jsscore @majiajun7 @atie2001 , thanks for your report, this issue will be fixed in v2.0.1.


此问题将会在 v2.0.1 中修复,感谢反馈

<!-- gh-comment-id:2904513837 --> @0xJacky commented on GitHub (May 23, 2025): Hi, @dengliyao @jsscore @majiajun7 @atie2001 , thanks for your report, this issue will be fixed in v2.0.1. --- 此问题将会在 v2.0.1 中修复,感谢反馈
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#575
No description provided.