Voci con l'etichetta :
Chiudi
Changelog
Chiudi
Provalo nel cloud

Switching your ONLYOFFICE DocSpace Enterprise to HTTPS when installing using Docker

Introduction

When you install ONLYOFFICE DocSpace Enterprise using Docker, you can use the letsencrypt.org service and script to easily create a CA-signed certificate and switch the portal to HTTPS with a single command.

The article below will explain this can be done.

Creating and installing CA-signed certificate

To create the letsencrypt certificate, run the installation script with the following parameters:

bash docspace-enterprise-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 Enterprise portal is installed.

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.

Alternatively, 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.

Using own certificates

To use your own certificates, run the installation script with the following parameters:

bash docspace-enterprise-install.sh docker --certfile path --certkeyfile path

Where:

  • certfile is the path to the certificate file for the domain.
  • certkeyfile is the path to the private key file for the certificate.

Alternatively, you can launch switching to HTTPS manually from the /app/onlyoffice/config/docspace-ssl-setup file:

bash /app/onlyoffice/config/docspace-ssl-setup -f /app/onlyoffice/fullchain.pem /app/onlyofficeprivkey.pem

Now your portal should be available via the https:// address.

Download Host on your own server Available for
Docker, Windows and Linux
Ti potrebbe essere d'aiuto anche...
Chiudi