add ASSUME_HTTPS parameter

This commit is contained in:
Sebastian Hugentobler 2019-06-24 12:48:07 +02:00
parent 85e8adc0aa
commit 900b0e1e96
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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;