diff --git a/README.md b/README.md
index 9a1985a68ff3e765965aac66214864dcd4b25630..659836eb2359465496a6348dd0e943847636163d 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,8 @@ A very simple container to redirect HTTP traffic to another server, based on `ng
 - `SERVER_REDIRECT_PATH` - optionally define path to redirect all requests eg. `/landingpage`
    - if not set nginx var `$request_uri` is used
 - `SERVER_REDIRECT_SCHEME` - optionally define scheme to redirect to 
-   - if not set nginx var `$scheme` is used
+   - if not set but X-Forwarded-Proto is send as request header with value 'https' this will be used. 
+     In all other cases nginx var `$scheme` is used
 - `SERVER_REDIRECT_CODE` - optionally define the http status code to use for redirection
    - if not set or not in list of allowed codes 301 is used as default
    - allowed Codes are: 301, 302, 303, 307, 308
diff --git a/docker-compose.yml b/docker-compose.yml
index ff5ac869a8bb49781ae39c92fb550d6352c9ade1..9ccc112923842a05343376ceec1858706c0f85c8 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -8,7 +8,8 @@ to:
     # if not set nginx var $request_uri is used
     #- SERVER_REDIRECT_PATH=/landingpage
     # optionally define schema to redirect all requests
-    # if not set nginx var $scheme is used
+    # if not set but X-Forwarded-Proto is send as request header with value 'https' this will be used.
+    # In all other cases nginx var `$scheme` is used
     #- SERVER_REDIRECT_SCHEME=https
     # optionally define the http code to use for redirection
     # allowed Codes are: 301, 302, 303, 307, 308, default is 301