瀏覽代碼

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 %}

Loading…
取消
儲存