From 4c279878217e05a4f75cac9d8cbfac2cc821043f Mon Sep 17 00:00:00 2001 From: Sylvain Date: Sun, 16 Jun 2024 21:32:03 +0200 Subject: [PATCH 1/3] Nginx allow large files --- conf/nginx.conf | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 6986deb..d33e423 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,14 +1,27 @@ location __PATH__/ { - proxy_pass http://127.0.0.1:__PORT__; - proxy_redirect off; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Host $server_name; - client_max_body_size 500M; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; + proxy_pass http://127.0.0.1:__PORT__; + + # allow large file uploads + client_max_body_size 50G; + client_body_timeout 600s; + client_body_buffer_size 512k; + + # Set headers + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Host $server_name; + + # enable websockets: http://nginx.org/en/docs/http/websocket.html + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_redirect off; + + # set timeout + proxy_read_timeout 600s; + proxy_send_timeout 600s; + send_timeout 600s; } From cb34aff893f80d8e1771c3eab909ffea27cc9878 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Mon, 24 Jun 2024 08:45:46 +0200 Subject: [PATCH 2/3] Dont remove log files --- scripts/remove | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/remove b/scripts/remove index 770c186..ee6edfa 100755 --- a/scripts/remove +++ b/scripts/remove @@ -36,9 +36,6 @@ ynh_remove_logrotate # Remove the dedicated NGINX config ynh_remove_nginx_config -# Remove the log files -ynh_secure_remove --file="/var/log/$app" - # Remove database myynh_drop_psql_db From 82b5e053d180d61238649ec99a557914ec73ba40 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Mon, 24 Jun 2024 06:45:12 +0000 Subject: [PATCH 3/3] Auto-update READMEs --- README_es.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README_es.md b/README_es.md index b1af30e..09fd163 100644 --- a/README_es.md +++ b/README_es.md @@ -30,7 +30,7 @@ Self-hosted photo and video management solution. ![Captura de Immich](./doc/screenshots/immich-screenshots.png) -## :red_circle: funcionalidades no deseadas +## :red_circle: Características no deseables - **Alpha software**: Early development stage. May contain changing or unstable features, bugs, and security vulnerability.