From 900b0e1e963d2a62754902d5e6887c1a33b1198a Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Mon, 24 Jun 2019 12:48:07 +0200 Subject: [PATCH] add ASSUME_HTTPS parameter --- README.md | 6 ++++++ rootfs/etc/confd/templates/nextcloud.conf.tmpl | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 16920a1..1ddb652 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,12 @@ Ldap attribute for the email. ## LDAP_UID_ATTRIBUTE Ldap attribute for the user id. +## ASSUME_HTTPS +- default: on +The value of `fastcgi_param HTTPS`. + +Either `on` or `off`. + # Ports - 80 diff --git a/rootfs/etc/confd/templates/nextcloud.conf.tmpl b/rootfs/etc/confd/templates/nextcloud.conf.tmpl index 36aef88..46f46df 100644 --- a/rootfs/etc/confd/templates/nextcloud.conf.tmpl +++ b/rootfs/etc/confd/templates/nextcloud.conf.tmpl @@ -61,7 +61,7 @@ server { include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; - fastcgi_param HTTPS on; + fastcgi_param HTTPS {{ getenv "ASSUME_HTTPS" "on" }}; #Avoid sending the security headers twice fastcgi_param modHeadersAvailable true;