mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
ocm-provider
This commit is contained in:
parent
a8a3fb2765
commit
28d0d666b4
2 changed files with 17 additions and 7 deletions
|
|
@ -61,7 +61,7 @@ http {
|
|||
# set max upload size
|
||||
fastcgi_buffers 64 4K;
|
||||
|
||||
index index.php;
|
||||
index index.php index.html /index.php$request_uri;
|
||||
|
||||
location = /robots.txt {
|
||||
allow all;
|
||||
|
|
@ -72,6 +72,8 @@ http {
|
|||
include nginx-app.conf;
|
||||
|
||||
location ~ \.php(?:$|/) {
|
||||
rewrite ^/(?!index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|ocs-provider\/.+|.+\/richdocumentscode\/proxy) /index.php$request_uri;
|
||||
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
|
|
@ -80,11 +82,19 @@ http {
|
|||
fastcgi_read_timeout 600;
|
||||
}
|
||||
|
||||
## Optional: set long EXPIRES header on static assets
|
||||
location ~* \.(?:jpg|jpeg|gif|bmp|ico|png|css|js|mjs|swf)$ {
|
||||
expires 30d;
|
||||
## Optional: Don't log access to assets
|
||||
access_log off;
|
||||
location ~ \.(?:css|js|mjs|svg|gif|png|jpg|ico|wasm|tflite|map)$ {
|
||||
try_files $uri /index.php$request_uri;
|
||||
access_log off; # Optional: Don't log access to assets
|
||||
|
||||
location ~ \.wasm$ {
|
||||
default_type application/wasm;
|
||||
}
|
||||
}
|
||||
|
||||
location ~ \.woff2?$ {
|
||||
try_files $uri /index.php$request_uri;
|
||||
expires 7d; # Cache-Control policy borrowed from `.htaccess`
|
||||
access_log off; # Optional: Don't log access to assets
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue