From 12a50bd9240b0b4c763f20e07059dd59ff0a0f1e Mon Sep 17 00:00:00 2001
From: Mark <mark@openappstack.net>
Date: Wed, 31 Jul 2019 15:23:35 +0200
Subject: [PATCH] Add warning about current state of OAS

---
 nextcloud-onlyoffice/templates/onlyoffice-config.yaml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/nextcloud-onlyoffice/templates/onlyoffice-config.yaml b/nextcloud-onlyoffice/templates/onlyoffice-config.yaml
index 47fb696c..6e6c6ff9 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":{
-- 
GitLab