Переглянути джерело

Add x-forwarded-proto header.

master
Chris Smith 6 роки тому
джерело
коміт
b816179f40
1 змінених файлів з 1 додано та 0 видалено
  1. 1
    0
      nginx.tpl

+ 1
- 0
nginx.tpl Переглянути файл

@@ -33,6 +33,7 @@ server {
33 33
         proxy_pass {{ service.protocol }}://{{ service.upstream }};
34 34
         proxy_set_header Host $host;
35 35
         proxy_set_header X-Forwarded-For $remote_addr;
36
+        proxy_set_header X-Forwarded-Proto $scheme;
36 37
     }
37 38
 }
38 39
 {% endfor %}

Завантаження…
Відмінити
Зберегти