From ca15d276e2f57775913706a2fda95743fe9d7f90 Mon Sep 17 00:00:00 2001 From: MindsDB Infrastructure / DevOps Date: Thu, 11 Jan 2024 15:23:08 +1300 Subject: [PATCH] fixing issues with webflow --- .../templates/configmap.yaml | 24 +++++++++---------- deployment/webflow-ssl-proxy/values.yaml | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/deployment/webflow-ssl-proxy/templates/configmap.yaml b/deployment/webflow-ssl-proxy/templates/configmap.yaml index 02dd4c73..30fa40f3 100755 --- a/deployment/webflow-ssl-proxy/templates/configmap.yaml +++ b/deployment/webflow-ssl-proxy/templates/configmap.yaml @@ -8,23 +8,23 @@ metadata: data: kubernetes.conf: | Options FollowSymLinks ExecCGI - ProxyPreserveHost Off + ProxyPreserveHost off ServerName webflow-ssl-proxy-80 ServerAlias * - Header add X-Forwarded-Proto "https" + # Add X-Forwarded-Proto header RequestHeader set X-Forwarded-Proto "https" - # Setup our proxying - SSLProxyEngine On - SSLProxyCheckPeerCN off - SSLProxyCheckPeerExpire off - SSLVerifyClient none - SSLProxyVerify none - - ProxyPass / "https://mindsdb.webflow.io/" - ProxyPassReverse / "https://mindsdb.webflow.io/" - + # Proxy requests to backend server, but "fake" a different hostname (mindsdb.com) needed because of how webflow works + ProxyRemote "*" "http://proxy.webflow.com" + ProxyPass / "http://mindsdb.com/" + ProxyPassReverse / "http://mindsdb.com/" + # IMPLEMENTATION NOTE: Uncomment below to debug raw any requests sent to proxies and such + # zz-debug.conf: | + # LoadModule dumpio_module modules/mod_dumpio.so + # LogLevel dumpio:trace7 + # DumpIOInput On + # DumpIOOutput On diff --git a/deployment/webflow-ssl-proxy/values.yaml b/deployment/webflow-ssl-proxy/values.yaml index f478bf8a..e7e0d984 100644 --- a/deployment/webflow-ssl-proxy/values.yaml +++ b/deployment/webflow-ssl-proxy/values.yaml @@ -19,14 +19,14 @@ deployment: livenessProbe: enabled: true initialDelaySeconds: 30 - path: / + path: /robots.txt # readinessProbes are used to determine when a container is ready to start accepting traffic # Only specify the values you need to override from the defaults readinessProbe: enabled: true initialDelaySeconds: 1 - path: / + path: /robots.txt # deployment container resource requests/limits # this is set VERY low by default, to be aggressive above resource limiting, please override this if necessary