# xworker_processes 1; events { worker_connections 1024; } http { map $http_upgrade $connection_upgrade { default upgrade; '' close; } resolver 127.0.0.1; include mime.types; default_type application/octet-stream; client_max_body_size 20M; sendfile on; keepalive_timeout 10; server_names_hash_bucket_size 64; upstream backend { server 212.193.59.173:8033; } upstream websocket { server 212.193.59.173:8033; keepalive 1000; } upstream multystub { server 212.193.59.173:8043; } upstream red_coder { server 212.193.59.173:8045; } upstream admin { server 212.193.59.173:8090; } upstream cms { server 212.193.55.249:8045; } # server { # listen 8080; # # server_name inno-js.ru; # # index index.php index.html index.htm index.nginx-debian.html; # location / { # 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://212.193.59.173:8079/; # } # 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/; # } # } # include ./83-php.conf; # include 3002-apps-static.conf; include 80.conf; include 443.conf; }