소스 검색

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…
취소
저장