mirror of
https://github.com/YunoHost-Apps/zusam_ynh.git
synced 2024-09-03 18:05:54 +02:00
corrections in nginx.conf
This commit is contained in:
parent
89c5717751
commit
d5456169c8
1 changed files with 28 additions and 42 deletions
|
@ -1,16 +1,7 @@
|
||||||
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
||||||
location __PATH__/ {
|
port_in_redirect off;
|
||||||
|
|
||||||
# Path to source
|
|
||||||
alias __INSTALL_DIR__/;
|
|
||||||
|
|
||||||
### Example PHP configuration (remove it if not used)
|
|
||||||
index index.php;
|
|
||||||
|
|
||||||
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
|
|
||||||
client_max_body_size 2048M;
|
client_max_body_size 2048M;
|
||||||
|
root __INSTALL_DIR__/public;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri /index.html;
|
try_files $uri /index.html;
|
||||||
}
|
}
|
||||||
|
@ -36,8 +27,3 @@ location __PATH__/ {
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
### End of PHP configuration part
|
|
||||||
|
|
||||||
# Include SSOWAT user panel.
|
|
||||||
# include conf.d/yunohost_panel.conf.inc;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue