I've got Ubuntu 18.04 Server installation, with Nextcloud server installed via snap.
It works perfectly via https protocol with letsencrypt certificates, on my worldwide web-domain. No problems.
Than I try to install OnlyOffice via SNAP on the same server. Installation is Ok, I've changed HTTP port with no problem. It opens and shows start page.
Than I try to change HTTPS port as it told here: via command:
Code: Select all
# snap set onlyoffice-ds onlyoffice.ds-ssl-port=444
Also there is the same autogenerated file with the same code inside here: var/snap/onlyoffice-ds/current/etc/nginx/conf.d/ As I guess, only office starts to run via https automatically, as soon as you put certs in the /var/snap/onlyoffice-ds/current/var/www/onlyoffice/Data/certs/ folder.
So. I've installed onlyoffice via snap nearly, on free virtual server, with the same configuration, generated self-signed certificates, and tried to connect with nextloud on separated server, on standard http&https ports. I'have an error, which says that self signed certificates are prohibited.
So. because I can't manually edit autogenerated config, I can't put there path to certs, generated by letsencrypt, as shown in manual here: (installed without snap)
Ok. How can I install certs, generated by letsencrypt service (they are *.pem extension, no *.key or *.crt), on onlyoffice server, installed by snap? And how can I do it not on the separate server, but on the same with nextcloud server???
Thank you very much for any ideas.