fix file size limit
This commit is contained in:
22
install.sh
22
install.sh
@@ -2306,6 +2306,9 @@ generate_all_self_signed_certs() {
|
||||
ok "Самоподписанный сертификат создан: ${LOCAL_CERTS_DIR}/shared-intranet"
|
||||
}
|
||||
|
||||
# Лимит тела запроса в nginx (APK до 350 МБ + запас на multipart).
|
||||
NGINX_RELEASE_UPLOAD_BODY_SIZE="${NGINX_RELEASE_UPLOAD_BODY_SIZE:-512m}"
|
||||
|
||||
nginx_conf_target() {
|
||||
local label="$1"
|
||||
if [[ "$NGINX_MODE" == "docker" ]]; then
|
||||
@@ -2571,6 +2574,10 @@ ${proxy_ws}
|
||||
}
|
||||
|
||||
location ^~ /idp-api/ {
|
||||
client_max_body_size ${NGINX_RELEASE_UPLOAD_BODY_SIZE};
|
||||
proxy_read_timeout 900s;
|
||||
proxy_send_timeout 900s;
|
||||
client_body_timeout 900s;
|
||||
${proxy_idp}
|
||||
${nginx_proxy_headers_api}
|
||||
}
|
||||
@@ -2611,7 +2618,7 @@ server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name ${domain};
|
||||
client_max_body_size 100m;
|
||||
client_max_body_size ${NGINX_RELEASE_UPLOAD_BODY_SIZE};
|
||||
${server_dns}
|
||||
${ws_block}
|
||||
${api_location}
|
||||
@@ -2626,7 +2633,7 @@ ${http_preamble}server {
|
||||
listen [::]:443 ssl http2;
|
||||
server_name ${domain};
|
||||
${ssl_block}
|
||||
client_max_body_size 100m;
|
||||
client_max_body_size ${NGINX_RELEASE_UPLOAD_BODY_SIZE};
|
||||
${server_dns}
|
||||
${ws_block}
|
||||
${api_location}
|
||||
@@ -2661,6 +2668,10 @@ ${proxy_ws}
|
||||
}
|
||||
|
||||
location ^~ /idp-api/ {
|
||||
client_max_body_size ${NGINX_RELEASE_UPLOAD_BODY_SIZE};
|
||||
proxy_read_timeout 900s;
|
||||
proxy_send_timeout 900s;
|
||||
client_body_timeout 900s;
|
||||
${proxy_idp}
|
||||
${nginx_proxy_headers_api}
|
||||
}
|
||||
@@ -2709,6 +2720,7 @@ server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name ${domain};
|
||||
client_max_body_size ${NGINX_RELEASE_UPLOAD_BODY_SIZE};
|
||||
${server_dns}
|
||||
${idp_api_block}
|
||||
location / {
|
||||
@@ -2726,7 +2738,7 @@ ${http_preamble}server {
|
||||
listen [::]:443 ssl http2;
|
||||
server_name ${domain};
|
||||
${ssl_block}
|
||||
client_max_body_size 50m;
|
||||
client_max_body_size ${NGINX_RELEASE_UPLOAD_BODY_SIZE};
|
||||
${server_dns}
|
||||
${idp_api_block}
|
||||
location / {
|
||||
@@ -2761,7 +2773,7 @@ server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name ${domain};
|
||||
client_max_body_size 50m;
|
||||
client_max_body_size ${NGINX_RELEASE_UPLOAD_BODY_SIZE};
|
||||
${server_dns}
|
||||
${idp_api_block}
|
||||
location / {
|
||||
@@ -2779,7 +2791,7 @@ ${http_preamble}server {
|
||||
listen [::]:443 ssl http2;
|
||||
server_name ${domain};
|
||||
${ssl_block}
|
||||
client_max_body_size 50m;
|
||||
client_max_body_size ${NGINX_RELEASE_UPLOAD_BODY_SIZE};
|
||||
${server_dns}
|
||||
${idp_api_block}
|
||||
location / {
|
||||
|
||||
Reference in New Issue
Block a user