Update to 2022-02-09 14:00

This commit is contained in:
Daniel Berteaud
2022-02-09 14:00:12 +01:00
parent 8f15d01cbe
commit 71a429c7a2
5 changed files with 26 additions and 5 deletions

View File

@@ -2,5 +2,11 @@ include /etc/onlyoffice/documentserver/nginx/includes/http-common.conf;
server {
listen 0.0.0.0:80;
server_name {{ oo_ds_vhost }};
# Override the fonts endpoint to add a Content-Type so reverse proxies can handle caching corectly
location ~ ^(\/[\d]+\.[\d]+\.[\d]+[\.|-][\d]+)?\/fonts(\/.*)$ {
add_header Content-Type font/opentype;
expires 365d;
alias /var/www/onlyoffice/documentserver/fonts$2;
}
include /etc/onlyoffice/documentserver/nginx/includes/ds-docservice.conf;
}