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;