diff --git a/nextcloud-onlyoffice/templates/onlyoffice-config.yaml b/nextcloud-onlyoffice/templates/onlyoffice-config.yaml
index 47fb696c890fc56235a4c4a79ecc3ead5da476cc..6e6c6ff9888009baa78c74c4fe61d07cc0fb7395 100644
--- a/nextcloud-onlyoffice/templates/onlyoffice-config.yaml
+++ b/nextcloud-onlyoffice/templates/onlyoffice-config.yaml
@@ -48,6 +48,8 @@ data:
   #   to be trusted. 10.43.0.0/16 contains all ip addresses that are
   #   assigned to kubernetes services which includes the ip address of
   #   the ingress service that functions as a proxy.
+  # system.overwriteprotocol overwrites the protocol of links that are
+  #   generated by nextcloud to HTTPS.
   # apps.core.backgroundjobs_mode set to cron disables the unreliable ajax
   #   scheduling that is enabled by default. Ajax scheduling is not needed
   #   because cronjobs are regularly executed by a kubernetes resource.
@@ -55,7 +57,8 @@ data:
   config.json: |
     {
         "system":{
-            "trusted_proxies": "10.43.0.0/16"
+            "trusted_proxies": "10.43.0.0/16",
+            "overwriteprotocol": "https"
         },
         "apps":{
             "core":{