瀏覽代碼

Add host and x-forwarded-for headers.

pull/4/head
Chris Smith 8 年之前
父節點
當前提交
fb5ebdb37a
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      nginx.tpl

+ 2
- 0
nginx.tpl 查看文件

@@ -12,6 +12,8 @@ server {
12 12
 
13 13
     location / {
14 14
         proxy_pass {{ service.protocol }}://{{ service.host }}:{{ service.port }};
15
+        proxy_set_header Host $host;
16
+        proxy_set_header X-Forwarded-For $remote_addr;
15 17
     }
16 18
 }
17 19
 {% endfor %}

Loading…
取消
儲存