mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-16 02:03:09 +02:00
13 lines
499 B
Django/Jinja
13 lines
499 B
Django/Jinja
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;
|
|
}
|