Page 1 of 1

Nextcloud Document Server ...how to https for port 9999 ?

Posted: Mon Jun 04, 2018 2:51 pm
by k26
Hi I finally installed nextcloud document server and can access through http://mydomain.com:9999/ and can see the welcome message ... document server is running
But I still cannot use it with Nextcloud to modify documents with OnlyOffice as it requires https
How can I configure /etc/nginx/conf.d/onlyoffice-documentserver.conf in order to use ssl ?
I try to follow https://helpcenter.onlyoffice.com/fr/se ... https.aspx and tried to replace
ssl_certificate /home/admin/conf/ssl.mydomain.com.pem;
ssl_certificate_key /home/admin/conf/ssl.mydomain.com.key;
with files generated by Vestacp for my domain.com but then commands
service httpd restart
and
service vesta restart fail....

Any idea how I can configure that ? Thanks for your help

Re: Nextcloud Document Server ...how to https for port 9999 ?

Posted: Sun Aug 09, 2020 11:21 pm
by zedpro
Hey k26,

You need to use a template, there are some specific options that need to be in your Nginx file. Adding it directly into the Nginx has a high chance of breaking your Nginx. I have made a custom template that I use to run the document server from a docker(which is how I recommend people use it.)

I wrote a detailed guide about it that you can follow.
https://zedpro.me/linux/install-onlyoff ... h-vestacp/

If you have any questions do let me know. Hope it works out for you.
Cheers,
Zed,