If you want to install DocSpace with SSL right away using the letsencrypt certificate, run the installation script with the following parameters:
bash docspace-install.sh docker --letsencryptmail user@example.com --letsencryptdomain yourdomain.com
Where:
letsencryptmail
is the email used for registration and recovery contact. Use comma to register multiple emails, for example: u1@example.com,u2@example.com.
letsencryptdomain
is the address of the domain where your ONLYOFFICE DocSpace Community portal is installed. Use comma to register multiple domains, for example: yourdomain1.com,yourdomain2.com.
The script will automatically create and install the letsencrypt.org CA-signed certificate to your server and restart the NGINX service for the changes to take effect.
If you want to switch to HTTPS already installed DocSpace, you can launch switching to HTTPS manually from the /app/onlyoffice/config/docspace-ssl-setup
file:
bash /app/onlyoffice/config/docspace-ssl-setup user@example.com yourdomain.com
Now your portal should be available via the https:// address.