20 lines
559 B
Plaintext
20 lines
559 B
Plaintext
|
|
upstream bakservers-new-auto-change--with-backup {
|
||
|
|
server 127.0.0.1:80 ;
|
||
|
|
server 127.0.0.1:81 backup;
|
||
|
|
}
|
||
|
|
|
||
|
|
server {
|
||
|
|
listen 8080 ;
|
||
|
|
server_name qp.mpapi.co ;
|
||
|
|
location / {
|
||
|
|
proxy_pass http://bakservers-new-auto-change--with-backup ;
|
||
|
|
proxy_http_version 1.1;
|
||
|
|
proxy_set_header Connection "";
|
||
|
|
proxy_set_header Host qp.mpapi.co;
|
||
|
|
|
||
|
|
add_header Access-Control-Allow-Origin *;
|
||
|
|
add_header Access-Control-Allow-Headers X-Requested-With;
|
||
|
|
add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
|
||
|
|
}
|
||
|
|
}
|