1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bludit_ynh.git synced 2024-09-03 18:06:13 +02:00

NGINX setting (#2)

* Update nginx.conf
This commit is contained in:
Éric Gaspar 2020-10-15 10:18:56 +02:00 committed by GitHub
parent 7deb9b41b0
commit d964a35c8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,10 +15,10 @@ location __PATH__/ {
#try_files $uri $uri/ /bludit//bludit/index.php?$args; #try_files $uri $uri/ /bludit//bludit/index.php?$args;
#location __PATH__/bl-content/databases/ { deny all; } location __PATH__/bl-content/databases/ { deny all; }
#location __PATH__/bl-content/workspaces/ { deny all; } location __PATH__/bl-content/workspaces/ { deny all; }
#location __PATH__/bl-content/pages/ { deny all; } location __PATH__/bl-content/pages/ { deny all; }
#location __PATH__/bl-kernel/*.php { deny all; } location __PATH__/bl-kernel/*.php { deny all; }
try_files $uri $uri/ index.php; try_files $uri $uri/ index.php;
location ~ [^/]\.php(/|$) { location ~ [^/]\.php(/|$) {
@ -31,6 +31,11 @@ location __PATH__/ {
fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_param SCRIPT_FILENAME $request_filename;
} }
location ~ \.(jpg|jpeg|gif|png|css|js|ico|svg|eot|ttf|woff|woff2|otf)$ {
access_log off;
expires 30d;
}
# Include SSOWAT user panel. # Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc; include conf.d/yunohost_panel.conf.inc;
} }