Update default.conf

This commit is contained in:
Mikhail 2024-02-14 14:14:28 +00:00
parent 1f5f061c00
commit c97832976f

@ -3,7 +3,7 @@ server {
index index.html index.htm index.nginx-debian.html;
server_name _; # managed by Certbot
client_max_body_size 0;
client_max_body_size 100M;
location /404 {
try_files $uri $uri/ /index.html;
@ -106,6 +106,7 @@ server {
}
location /answer/ {
client_max_body_size 100M;
if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
@ -115,7 +116,6 @@ server {
return 200;
}
client_max_body_size 0;
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type,x-sessionkey always;
@ -125,6 +125,7 @@ server {
}
location /squiz/ {
client_max_body_size 100M;
if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Credentials true always;
@ -299,6 +300,7 @@ server {
listen 80 ;
listen [::]:80 ;
server_name _;
client_max_body_size 100M;
location /robots.txt {
if ($host = services,pena.digital) {