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

15 lines
378 B
Plaintext
Raw Normal View History

2023-09-06 14:48:49 -05:00
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 {
2023-09-06 16:49:15 -05:00
proxy_pass http://192.168.2.214:3000/;
2023-09-06 16:53:20 -05:00
proxy_hide_header Access-Control-Allow-Origin;
add_header Access-Control-Allow-Origin $http_origin;
2023-09-06 14:48:49 -05:00
}
}