From 9e840d7bfb4880b5c971a2f95a70ce3988e9542b Mon Sep 17 00:00:00 2001 From: Rui Carmo Date: Thu, 22 Dec 2022 16:57:59 +0000 Subject: [PATCH] Added note on NGINX_HTTPS_ONLY --- docs/ENV.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ENV.md b/docs/ENV.md index bb1cc4e..3da42bc 100644 --- a/docs/ENV.md +++ b/docs/ENV.md @@ -40,7 +40,7 @@ You can configure deployment settings by placing special variables in an `ENV` f * `NGINX_SERVER_NAME`: set the virtual host name associated with your app * `NGINX_CLOUDFLARE_ACL` (boolean): activate an ACL allowing access only from Cloudflare IPs * `NGINX_STATIC_PATHS`: set an array of `/url:path` values -* `NGINX_HTTPS_ONLY` (boolean, defaults to false): tell nginx to auto-redirect non-SSL traffic to SSL site +* `NGINX_HTTPS_ONLY` (boolean, defaults to false): tell nginx to auto-redirect non-SSL traffic to SSL site. **NOTE:** if used with CloudFlare, it will cause an infinite redirect loop - you will need to add a CloudFlare Page Rule to "Always Use HTTPS" for your server (`domain.name/*` to match all URLs). * `NGINX_INCLUDE_FILE`: a file in the app's dir to include in nginx config `server` section - useful for including custom nginx directives. * `NGINX_ALLOW_GIT_FOLDERS`: (boolean) allow access to `.git` folders (default: false, blocked)