1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

Update nginx.conf

This commit is contained in:
Éric Gaspar 2023-06-02 09:12:19 +02:00
parent 57c0e38746
commit 03fd056689

View file

@ -104,6 +104,11 @@ location ^~ __PATH__/ {
fastcgi_request_buffering off; fastcgi_request_buffering off;
} }
location ~ ^/(?:updater|oc[ms]-provider)(?:$|/) {
try_files $uri/ =404;
index index.php;
}
location ~ \.(?:css|js|svg|gif)$ { location ~ \.(?:css|js|svg|gif)$ {
try_files $uri / __PATH__/index.php$request_uri; try_files $uri / __PATH__/index.php$request_uri;
expires 6M; # Cache-Control policy borrowed from `.htaccess` expires 6M; # Cache-Control policy borrowed from `.htaccess`