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

23 lines
471 B
Plaintext
Raw Permalink Normal View History

2023-09-06 14:48:49 -05:00
server {
listen 80 default_server;
server_name _;
server_name_in_redirect off;
2023-09-06 18:30:26 -05:00
resolver 127.0.0.11;
2023-09-06 19:48:14 -05:00
proxy_cache mycache;
proxy_cache_valid 200 15s;
2023-09-06 14:48:49 -05:00
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log debug;
location /service {
2023-09-06 18:30:26 -05:00
proxy_method GET;
proxy_pass $arg_url;
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 19:48:14 -05:00
2023-09-06 14:48:49 -05:00
}
}