worker_processes 1;
events { worker_connections 1024; }
http { include mime.types; default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
upstream nginxboot{ server 192.168.3.173:8778; server 192.168.1.106:8778; } server { listen 80; server_name localhost;
location / { root html; index index.html index.htm; proxy_pass http://nginxboot; add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT, DELETE'; add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Headers' 'Authorization,Content-Type,Accept,Origin,User-Agent,DNT,Cache-Control,X-Mx-ReqToken,X-Data-Type,X-Requested-With,X-Data-Type,X-Auth-Token'; }
error_page 500 502 503 504 /50x.html; location = /50x.html { root html; }
}
}
|