ONLYOFFICE Docs v6.4 with conditional formatting, new scaling options, and WOPI protocol support
ONLYOFFICE Docs v6.4 released

Nginx configuration

Dear community,

i’ve installed OnlyOffice community server via package manager (plain, not as docker) on debian 11 using nginx as ReverseProxy. But i don’t get it run and accessed via internet because i have problems writing a working nginx configuration file.

The example file at github is no help for me - i’d like a minimal file.

First of all i’m not sure

  1. where to put the configuration file (in /etc/nginx/conf.d/ and/or in /etc/onlyoffice/documentserver/nginx/?),

  2. what the right path for the root-directive is (/var/www/onlyoffice/ seems not to be right),

  3. what the right location-directive and server name / FDQN is,

  4. if there’s (another) OnlyOffice configuration file for naming the FDQN right.

I’m using Let’s Encrypt certificates.

Here is what my configuration “onlyoffice.conf” placed in /etc/nginx/conf.d/ looks like at the moment (mydomain.com is set to a real existing value, onlyoffice.mydomain.com has a working DNS-A-record):

server {
  server_name onlyoffice.mydomain.com;
  server_tokens off;

  listen [::]:443 ssl; # managed by Certbot
  listen 443 ssl; # managed by Certbot
  ssl_certificate /etc/letsencrypt/live/onlyoffice.zsl-server.de/fullchain.pem; # managed by Certbot
  ssl_certificate_key /etc/letsencrypt/live/onlyoffice.zsl-server.de/privkey.pem; # managed by Certbot
  include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
  ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

# root /usr/share/nginx/html/; <-- i don't know what to write here

  location / {
    proxy_pass http://onlyoffice.mydomain.com/; <-- i don't know what to write here
    proxy_http_version 1.1;
  }
}

I appreciate every hint and would be glad about a minimal working configuration file.

Best regards
blink

Hello,
You are probably referring to configuration examples from here:

These are for Document Server, not for Community Server. Unfortunately, we do not have any proxy configuration examples for Community Server.

Thank you. But these examples don’t work for me.

Yes, we don’t have proxy configuration examples for ONLYOFFICE Workspace.