Using custom fonts
Mount the fonts folder from your local machine to the fonts folder within the onlyoffice-documentserver-data container. To do that:
- open the cluster.yml file,
- find the services -> onlyoffice-documentserver-data -> volumes section,
- replace the
- /usr/share/fonts
string with the following one:
- /your_local_fonts_folder:/usr/share/fonts
Setting up HTTPS
To use the HTTPS protocol you need to uncomment the following strings in the cluster.yml file:
- FORCE_SSL=true
- CERT_FOLDER=/certs/
- /app/onlyoffice/DocumentServer/data/certs/onlyoffice.pem:/certs/cert1.pem
Create the /app/onlyoffice/DocumentServer/data/certs/onlyoffice.pem file that contains a certificate and a private key.
When using CA certified certificates, the Private key (.key) and SSL certificate (.crt) are provided to you by the CA. When using self-signed certificates you need to generate these files yourself. Skip steps 1-3 in the following section if you have CA certified SSL certificates.
Generation of self signed certificates
Generation of self-signed SSL certificates involves a simple 3 step procedure
STEP 1: Create the server private key
openssl genrsa -out onlyoffice.key 2048
STEP 2: Create the certificate signing request (CSR)
openssl req -new -key onlyoffice.key -out onlyoffice.csr
STEP 3: Sign the certificate using the private key and CSR
openssl x509 -req -days 365 -in onlyoffice.csr -signkey onlyoffice.key -out onlyoffice.crt
STEP 4: Merge both the files
cp onlyoffice.crt onlyoffice.pem
cat onlyoffice.key >> onlyoffice.pem