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;
  }
  set $secure_link_secret {{ oo_link_secret }};
  include /etc/nginx/includes/ds-cache.conf;
  include /etc/onlyoffice/documentserver/nginx/includes/ds-docservice.conf;
}
