1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lychee_ynh.git synced 2024-09-03 19:36:36 +02:00
* Allow large files (< 512MB) to be uploaded
This commit is contained in:
Éric Gaspar 2020-11-15 23:07:40 +01:00 committed by GitHub
parent 973c2d0748
commit bbbd06722c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View file

@ -11,6 +11,10 @@ location ^~ __PATH__/ {
index index.php; index index.php;
# setup for image upload
client_max_body_size 512M;
proxy_max_temp_file_size2048M;
try_files $uri $uri/ __PATH__/__PATH__/index.php?$query_string; try_files $uri $uri/ __PATH__/__PATH__/index.php?$query_string;
location ~ \.php$ { location ~ \.php$ {
@ -30,6 +34,7 @@ location ^~ __PATH__/ {
# Include SSOWAT user panel. # Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc; include conf.d/yunohost_panel.conf.inc;
} }
location @lychee { location @lychee {
rewrite __PATH__/(.*)$ __PATH__/index.php?/$1 last; rewrite __PATH__/(.*)$ __PATH__/index.php?/$1 last;
} }

View file

@ -419,8 +419,8 @@ chdir = __FINALPATH__
;php_admin_value[memory_limit] = 32M ;php_admin_value[memory_limit] = 32M
; Common values to change to increase file upload limit ; Common values to change to increase file upload limit
php_admin_value[upload_max_filesize] = 200M php_admin_value[upload_max_filesize] = 512M
php_admin_value[post_max_size] = 200M php_admin_value[post_max_size] = 512M
; php_admin_flag[mail.add_x_header] = Off ; php_admin_flag[mail.add_x_header] = Off
; Other common parameters ; Other common parameters

View file

@ -6,7 +6,7 @@
"en": "Photo-management-system to manage and share photos.", "en": "Photo-management-system to manage and share photos.",
"fr": "Système de gestion de photos pour gérer et partager des photos." "fr": "Système de gestion de photos pour gérer et partager des photos."
}, },
"version": "4.0.7~ynh1", "version": "4.0.7~ynh2",
"url": "https://lycheeorg.github.io/", "url": "https://lycheeorg.github.io/",
"license": "MIT", "license": "MIT",
"maintainer": { "maintainer": {