2021-12-01 19:13:34 +01:00
|
|
|
include /etc/onlyoffice/documentserver/nginx/includes/http-common.conf;
|
|
|
|
server {
|
|
|
|
listen 0.0.0.0:80;
|
|
|
|
server_name {{ oo_ds_vhost }};
|
2022-02-09 14:00:12 +01:00
|
|
|
# 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;
|
|
|
|
}
|
2022-09-23 14:00:10 +02:00
|
|
|
set $secure_link_secret {{ oo_link_secret }};
|
2024-10-28 15:00:12 +01:00
|
|
|
include /etc/nginx/includes/ds-cache.conf;
|
2021-12-01 19:13:34 +01:00
|
|
|
include /etc/onlyoffice/documentserver/nginx/includes/ds-docservice.conf;
|
|
|
|
}
|