1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lychee_ynh.git synced 2024-09-03 19:36:36 +02:00

Update nginx.conf

This commit is contained in:
ericgaspar 2020-11-15 21:52:44 +01:00
parent e1fc69b893
commit d0c9f2effb
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -11,6 +11,10 @@ location ^~ __PATH__/ {
index index.php; index index.php;
# setup for image upload
client_max_body_size 256M;
proxy_max_temp_file_size 1024M;
try_files $uri $uri/ @lychee; try_files $uri $uri/ @lychee;
location ~ \.php$ { location ~ \.php$ {
if (!-e $request_filename) { if (!-e $request_filename) {
@ -29,6 +33,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;
} }