43 lines
1.6 KiB
Plaintext
43 lines
1.6 KiB
Plaintext
location /api/ {
|
|
# add_header 'Access-Control-Allow-Origin' '*';
|
|
# 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';
|
|
proxy_pass http://backend/;
|
|
}
|
|
|
|
location /multystub/ {
|
|
# add_header 'Access-Control-Allow-Origin' '*';
|
|
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';
|
|
proxy_pass http://multystub/;
|
|
}
|
|
|
|
location /socket.io/ {
|
|
|
|
proxy_pass http://websocket;
|
|
|
|
proxy_http_version 1.1;
|
|
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;
|
|
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/";
|
|
}
|