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

Update nginx.conf

This commit is contained in:
frju365 2017-02-01 20:03:20 +01:00 committed by GitHub
parent befb553ab2
commit 60e4320277

View file

@ -2,15 +2,6 @@ location ^~ YNH_WWW_PATH {
root /var/www;
try_files $uri $uri/ /YNH_WWW_APP/index.php?$query_string;
index /YNH_WWW_APP/index.php;
location YNH_WWW_PATH/ { try_files $uri $uri/ /YNH_WWW_APP/index.php?$query_string; }
location YNH_WWW_PATH/api { try_files $uri $uri/ /YNH_WWW_APP/api.php?$query_string; }
location YNH_WWW_PATH/admin { try_files $uri $uri/ /YNH_WWW_APP/admin.php?$query_string; }
location YNH_WWW_PATH/flarum {
deny all;
return 404;
}
location ~* \.php$ {
fastcgi_split_path_info ^(.+.php)(/.+)$;
@ -48,29 +39,10 @@ location ^~ YNH_WWW_PATH {
location YNH_WWW_PATH/system {
rewrite ^(.*)$ /error break;
}
gzip on;
gzip_http_version 1.1;
gzip_vary on;
gzip_comp_level 6;
gzip_proxied any;
gzip_types application/atom+xml
application/javascript
application/json
application/vnd.ms-fontobject
application/x-font-ttf
application/x-web-app-manifest+json
application/xhtml+xml
application/xml
font/opentype
image/svg+xml
image/x-icon
text/css
text/plain
text/xml;
gzip_buffers 16 8k;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
}