fil size
This commit is contained in:
parent
137bdaef13
commit
b73275c15b
8
80.conf
8
80.conf
@ -4,10 +4,10 @@ server {
|
|||||||
# index index.php index.html index.htm index.nginx-debian.html;
|
# index index.php index.html index.htm index.nginx-debian.html;
|
||||||
|
|
||||||
location /api {
|
location /api {
|
||||||
add_header 'Access-Control-Allow-Origin' '*';
|
# add_header 'Access-Control-Allow-Origin' '*';
|
||||||
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
# 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-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-Expose-Headers' 'Content-Length,Content-Range';
|
||||||
proxy_pass http://backend;
|
proxy_pass http://backend;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ http {
|
|||||||
resolver 127.0.0.1;
|
resolver 127.0.0.1;
|
||||||
include mime.types;
|
include mime.types;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
|
client_max_body_size 20M;
|
||||||
|
|
||||||
sendfile on;
|
sendfile on;
|
||||||
keepalive_timeout 10;
|
keepalive_timeout 10;
|
||||||
|
Loading…
Reference in New Issue
Block a user