Update default.conf
This commit is contained in:
parent
c97832976f
commit
ebcf59dc53
26
default.conf
26
default.conf
@ -106,7 +106,14 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /answer/ {
|
location /answer/ {
|
||||||
client_max_body_size 100M;
|
proxy_set_header Referer $host;
|
||||||
|
proxy_set_header Origin $http_origin;
|
||||||
|
proxy_set_header Connection '';
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
chunked_transfer_encoding off;
|
||||||
|
proxy_buffering off;
|
||||||
|
proxy_cache off;
|
||||||
|
|
||||||
if ($request_method = OPTIONS) {
|
if ($request_method = OPTIONS) {
|
||||||
add_header Access-Control-Allow-Origin $http_origin always;
|
add_header Access-Control-Allow-Origin $http_origin always;
|
||||||
add_header Access-Control-Allow-Credentials true always;
|
add_header Access-Control-Allow-Credentials true always;
|
||||||
@ -125,7 +132,14 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /squiz/ {
|
location /squiz/ {
|
||||||
client_max_body_size 100M;
|
proxy_set_header Referer $host;
|
||||||
|
proxy_set_header Origin $http_origin;
|
||||||
|
proxy_set_header Connection '';
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
chunked_transfer_encoding off;
|
||||||
|
proxy_buffering off;
|
||||||
|
proxy_cache off;
|
||||||
|
|
||||||
if ($request_method = OPTIONS) {
|
if ($request_method = OPTIONS) {
|
||||||
add_header Access-Control-Allow-Origin $http_origin always;
|
add_header Access-Control-Allow-Origin $http_origin always;
|
||||||
add_header Access-Control-Allow-Credentials true always;
|
add_header Access-Control-Allow-Credentials true always;
|
||||||
@ -141,6 +155,14 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /squizstorer/ {
|
location /squizstorer/ {
|
||||||
|
proxy_set_header Referer $host;
|
||||||
|
proxy_set_header Origin $http_origin;
|
||||||
|
proxy_set_header Connection '';
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
chunked_transfer_encoding off;
|
||||||
|
proxy_buffering off;
|
||||||
|
proxy_cache off;
|
||||||
|
|
||||||
if ($request_method = OPTIONS) {
|
if ($request_method = OPTIONS) {
|
||||||
add_header Access-Control-Allow-Origin $http_origin always;
|
add_header Access-Control-Allow-Origin $http_origin always;
|
||||||
add_header Access-Control-Allow-Credentials true always;
|
add_header Access-Control-Allow-Credentials true always;
|
||||||
|
Loading…
Reference in New Issue
Block a user