From 9d2b2900cb4471d3d4ee5d479824cab3020ac874 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 4 Jul 2024 12:21:09 +0200 Subject: [PATCH] fix --- conf/config.json | 2 +- conf/nginx.conf | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/conf/config.json b/conf/config.json index bfb1208..d74263c 100644 --- a/conf/config.json +++ b/conf/config.json @@ -43,7 +43,7 @@ "EnableMultifactorAuthentication": false, "EnforceMultifactorAuthentication": false, "EnableUserAccessTokens": false, - "AllowCorsFrom": "", + "AllowCorsFrom": "__DOMAIN__", "CorsExposedHeaders": "", "CorsAllowCredentials": false, "CorsDebug": false, diff --git a/conf/nginx.conf b/conf/nginx.conf index bbba431..6b7e46d 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -21,9 +21,14 @@ location ~ ^__PATH__/api/v[0-9]+/(users/)?websocket$ { proxy_pass http://127.0.0.1:__PORT__; } -location __PATH__/ { - client_max_body_size 100M; +location ~* ^__PATH__/ { + client_max_body_size 250M; proxy_set_header Connection ""; + + if ($request_method = HEAD) { + return 200; + } + proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;