mirror of
https://github.com/YunoHost-Apps/humhub_ynh.git
synced 2024-09-03 19:26:11 +02:00
Attempt at fixing nginx
This commit is contained in:
parent
ead29975e4
commit
5839fa3e57
1 changed files with 3 additions and 7 deletions
|
@ -13,22 +13,18 @@ location YNH_WWW_PATH {
|
||||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(?:ico|css|js|gif|jpe?g|png|ttf|woff)$ {
|
location ~ ^YNH_WWW_PATH(?:ico|css|js|gif|jpe?g|png|ttf|woff)$ {
|
||||||
access_log off;
|
access_log off;
|
||||||
expires 30d;
|
expires 30d;
|
||||||
add_header Pragma public;
|
add_header Pragma public;
|
||||||
add_header Cache-Control "public, mustrevalidate, proxy-revalidate";
|
add_header Cache-Control "public, mustrevalidate, proxy-revalidate";
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /\.ht {
|
location = YNH_WWW_PATHprotected {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /protected {
|
location = YNH_WWW_PATHuploads/file {
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /uploads/file {
|
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue