Fix X-Forwarded-Proto
diff --git a/apache/files/proxy.conf b/apache/files/proxy.conf
index 060d45b..93daa8e 100644
--- a/apache/files/proxy.conf
+++ b/apache/files/proxy.conf
@@ -10,6 +10,10 @@
   ServerSignature Off
   DocumentRoot /var/www
   ProxyPass / {{ site.proxy.protocol }}://{{ site.proxy.host }}:{{ site.proxy.port }}/
+  {%- if site.get('ssl', {'enabled': False}).get('enabled', False) %}
+  RequestHeader set X-Forwarded-Proto "https"
+  RequestHeader set Front-End-Https "On"
+  {%- endif %}
   <Location / >
     ProxyPassReverse {{ site.proxy.protocol }}://{{ site.proxy.host }}:{{ site.proxy.port }}/
     <Limit OPTIONS PROPFIND GET REPORT MKACTIVITY PROPPATCH PUT CHECKOUT MKCOL MOVE COPY DELETE LOCK UNLOCK MERGE>