8000 GitHub - zrk1993/fetchSSE: Fetch Server-Sent Events
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

zrk1993/fetchSSE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fetchSSE

sse nginx需要配置

server {
    listen       443 ssl;
    server_name  chat.***.com;

    include  /usr/local/nginx/conf/ssl.conf;

    ssl_session_cache    shared:SSL:1m;
    ssl_session_timeout  5m;
    ssl_ciphers  HIGH:!aNULL:!MD5;
    ssl_prefer_server_ciphers  on;

    location / {
        root   /srv/chatgpt-web/dist;
        index  index.html index.htm;
    }

    location /api {
        proxy_set_header Connection '';
        proxy_http_version 1.1;
        chunked_transfer_encoding off;
        proxy_buffering off;
        proxy_cache off;

        proxy_set_header Host $http_host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://127.0.0.1:3000;
    }
}

About

Fetch Server-Sent Events

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0