diff --git a/80.conf b/80.conf index 803c2be..364d6cf 100644 --- a/80.conf +++ b/80.conf @@ -4,10 +4,10 @@ server { # index index.php index.html index.htm index.nginx-debian.html; location /api { - add_header 'Access-Control-Allow-Origin' '*'; - add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; - add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; - add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range'; + # add_header 'Access-Control-Allow-Origin' '*'; + # add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; + # add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; + # add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range'; proxy_pass http://backend; } diff --git a/nginx.conf b/nginx.conf index a1284dc..d8584cc 100644 --- a/nginx.conf +++ b/nginx.conf @@ -9,6 +9,7 @@ http { resolver 127.0.0.1; include mime.types; default_type application/octet-stream; + client_max_body_size 20M; sendfile on; keepalive_timeout 10;