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:
parent
e1fc69b893
commit
d0c9f2effb
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue