diff options
-rw-r--r-- | templates/etc/nginx/domain.erb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/etc/nginx/domain.erb b/templates/etc/nginx/domain.erb index b5e35da..5e45ec8 100644 --- a/templates/etc/nginx/domain.erb +++ b/templates/etc/nginx/domain.erb @@ -106,8 +106,9 @@ server { client_max_body_size 100M; location / { - # preserve http header + # preserve http header and set forwarded proto proxy_set_header Host $http_host; + proxy_set_header X-Forwarded-Proto https; proxy_read_timeout 120; proxy_connect_timeout 120; |