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
where to put the configuration file (in /etc/nginx/conf.d/ and/or in /etc/onlyoffice/documentserver/nginx/?),
what the right path for the root-directive is (/var/www/onlyoffice/ seems not to be right),
what the right location-directive and server name / FDQN is,
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.
Hi pderuijter, i know. * is a wilcard used to include all files starting with “onlyoffice-” and ending with “.conf”. I’m a webserver administrator. The problem is the right nginx reverse proxy setting.
Hello @gotenash
You can share your experience even if there aren’t new requests on this case (this is really old thread). We always appreciate it when users help each other.