Co-authored-by: xiuting.xu <xiutingxt.xu@gmail.com> Reviewed-on: #21 Reviewed-by: huhy <husteryezi@163.com> Reviewed-by: sundapeng <sundp@mail.zgclab.edu.cn> Reviewed-by: yuyr <yuyr@zgclab.edu.cn>
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
server {
|
|
listen 80;
|
|
server_name master.argus.com;
|
|
|
|
location / {
|
|
# proxy_pass http://master.argus.com;
|
|
proxy_pass http://master.argus.com;
|
|
# proxy_set_header Host $host;
|
|
# proxy_set_header X-Real-IP $remote_addr;
|
|
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
# proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
# # CORS 支持
|
|
# add_header 'Access-Control-Allow-Origin' 'http://web.argus.com' always;
|
|
# add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always;
|
|
# add_header 'Access-Control-Allow-Headers' 'Origin, Content-Type, Accept, Authorization' always;
|
|
|
|
# if ($request_method = OPTIONS) {
|
|
# add_header 'Access-Control-Allow-Origin' 'http://web.argus.com' always;
|
|
# add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always;
|
|
# add_header 'Access-Control-Allow-Headers' 'Origin, Content-Type, Accept, Authorization' always;
|
|
# add_header 'Content-Length' 0;
|
|
# add_header 'Content-Type' 'text/plain';
|
|
# return 204;
|
|
# }
|
|
}
|
|
}
|