INNOJS-16
This commit is contained in:
parent
685c37a0ed
commit
9b5a406d91
7
80.conf
7
80.conf
@ -97,17 +97,14 @@ server {
|
|||||||
ssl_certificate_key /etc/letsencrypt/live/inno-js.ru/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/inno-js.ru/privkey.pem;
|
||||||
ssl_trusted_certificate /etc/letsencrypt/live/inno-js.ru/chain.pem;
|
ssl_trusted_certificate /etc/letsencrypt/live/inno-js.ru/chain.pem;
|
||||||
|
|
||||||
set $appsRoot "/home/ijl/ijl/apps";
|
|
||||||
root $appsRoot;
|
|
||||||
|
|
||||||
include /etc/nginx/snippets/ssl-params.conf;
|
include /etc/nginx/snippets/ssl-params.conf;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
add_header 'Access-Control-Allow-Origin' '*';
|
add_header 'Access-Control-Allow-Origin' '*.inno-js.ru';
|
||||||
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
||||||
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
|
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
|
||||||
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
|
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
|
||||||
alias "$appsRoot/";
|
alias "/home/ijl/ijl/apps/";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,14 +14,29 @@ location /multystub/ {
|
|||||||
proxy_pass http://multystub/;
|
proxy_pass http://multystub/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /websocket/ {
|
location /socket.io/ {
|
||||||
|
|
||||||
|
proxy_pass http://websocket;
|
||||||
|
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_pass http://websocket/api/socket.io/;
|
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
|
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|
||||||
proxy_read_timeout 3600s;
|
proxy_read_timeout 3600s;
|
||||||
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection $connection_upgrade;
|
# proxy_set_header Connection $connection_upgrade;
|
||||||
|
proxy_set_header Connection "Upgrade";
|
||||||
|
}
|
||||||
|
|
||||||
|
location /static/ {
|
||||||
|
add_header 'Access-Control-Allow-Origin' '*.inno-js.ru';
|
||||||
|
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
||||||
|
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
|
||||||
|
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
|
||||||
|
alias "/home/ijl/ijl/apps/";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user