From acbde53bc67890a1a27c19aac18229e4fbcb4a7a Mon Sep 17 00:00:00 2001 From: Vitalii <98163405+MementoMorj@users.noreply.github.com> Date: Thu, 28 Sep 2023 16:47:46 +0300 Subject: [PATCH] max image size fix --- templates/default.conf.template | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/default.conf.template b/templates/default.conf.template index e40275fc2..4be20b5a1 100644 --- a/templates/default.conf.template +++ b/templates/default.conf.template @@ -15,13 +15,13 @@ server { listen 80; listen [::]:80; - server_name $FRONTEND_SERVER_NAME; + server_name $BACKEND_SERVER_NAME; location /.well-known/acme-challenge/ { root /var/www/certbot; } - return 301 https://$FRONTEND_SERVER_NAME; + return 301 https://$BACKEND_SERVER_NAME; } server { @@ -32,6 +32,8 @@ server { ssl_certificate_key /etc/nginx/ssl/live/$FRONTEND_SERVER_NAME/privkey.pem; ssl_trusted_certificate /etc/nginx/ssl/live/$FRONTEND_SERVER_NAME/fullchain.pem; + client_max_body_size 50M; + location / { proxy_pass http://frontend; proxy_set_header Host $http_host; @@ -50,6 +52,8 @@ server { ssl_certificate_key /etc/nginx/ssl/live/$BACKEND_SERVER_NAME/privkey.pem; ssl_trusted_certificate /etc/nginx/ssl/live/$BACKEND_SERVER_NAME/fullchain.pem; + client_max_body_size 50M; + location / { proxy_pass http://backend; proxy_set_header Host $http_host;