websocket
This commit is contained in:
parent
a62fd823bf
commit
685c37a0ed
3
80.conf
3
80.conf
@ -70,6 +70,9 @@ server {
|
||||
ssl_certificate_key /etc/letsencrypt/live/inno-js.ru/privkey.pem;
|
||||
ssl_trusted_certificate /etc/letsencrypt/live/inno-js.ru/chain.pem;
|
||||
|
||||
ssl_prefer_server_ciphers on;
|
||||
ssl_verify_client off;
|
||||
|
||||
include "parts/api-multystub.conf";
|
||||
|
||||
include /etc/nginx/snippets/ssl-params.conf;
|
||||
|
10
nginx.conf
10
nginx.conf
@ -6,6 +6,11 @@ events {
|
||||
}
|
||||
|
||||
http {
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
|
||||
resolver 127.0.0.1;
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
@ -19,6 +24,11 @@ http {
|
||||
server 212.193.59.173:8033;
|
||||
}
|
||||
|
||||
upstream websocket {
|
||||
server 212.193.59.173:8033;
|
||||
keepalive 1000;
|
||||
}
|
||||
|
||||
upstream multystub {
|
||||
server 212.193.59.173:8043;
|
||||
}
|
||||
|
@ -13,3 +13,15 @@ location /multystub/ {
|
||||
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
|
||||
proxy_pass http://multystub/;
|
||||
}
|
||||
|
||||
location /websocket/ {
|
||||
proxy_http_version 1.1;
|
||||
proxy_pass http://websocket/api/socket.io/;
|
||||
proxy_redirect off;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_read_timeout 3600s;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user