18 lines
412 B
Plaintext
18 lines
412 B
Plaintext
server {
|
|
listen 80 default_server;
|
|
server_name _;
|
|
server_name_in_redirect off;
|
|
|
|
resolver 127.0.0.11;
|
|
|
|
access_log /var/log/nginx/access.log;
|
|
error_log /var/log/nginx/error.log debug;
|
|
|
|
location /service {
|
|
proxy_method GET;
|
|
proxy_pass $arg_url;
|
|
proxy_hide_header Access-Control-Allow-Origin;
|
|
add_header Access-Control-Allow-Origin $http_origin;
|
|
}
|
|
}
|