| 12345678910111213141516171819202122 |
- upstream git {
- server 10.200.200.203:10080;
- }
- # git
- server {
- listen 80;
- server_name test-git.proginn.com;
- location = /robots.txt {
- alias /code/web/norobots.txt;
- }
- set $temp_request_id $http_x_request_id;
- if ($temp_request_id = "") {
- set $temp_request_id $request_id;
- }
- location / {
- proxy_pass http://git/;
- proxy_set_header Host $http_host;
- proxy_set_header X-Real-IP $http_x_real_ip;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- # proxy_set_header X-Forwarded-Proto $scheme;
- }
- }
|