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;
|
||||
}
|
||||
|
||||
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;
|
||||
expires 30d;
|
||||
add_header Pragma public;
|
||||
add_header Cache-Control "public, mustrevalidate, proxy-revalidate";
|
||||
}
|
||||
|
||||
location ~ /\.ht {
|
||||
location = YNH_WWW_PATHprotected {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location /protected {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location /uploads/file {
|
||||
location = YNH_WWW_PATHuploads/file {
|
||||
deny all;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue