cors-proxy-nginx/nginx-conf/default.conf.template

15 lines
378 B
Plaintext

server {
listen 80 default_server;
server_name _;
server_name_in_redirect off;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log debug;
location /service {
proxy_pass http://192.168.2.214:3000/;
proxy_hide_header Access-Control-Allow-Origin;
add_header Access-Control-Allow-Origin $http_origin;
}
}