diff --git a/conf/nginx.conf b/conf/nginx.conf index 1d7ef8d..8f45254 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -11,6 +11,10 @@ location ^~ __PATH__/ { index index.php; + # setup for image upload + client_max_body_size 256M; + proxy_max_temp_file_size 1024M; + try_files $uri $uri/ @lychee; location ~ \.php$ { if (!-e $request_filename) { @@ -29,6 +33,7 @@ location ^~ __PATH__/ { # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; } + location @lychee { rewrite __PATH__/(.*)$ __PATH__/index.php?/$1 last; }