git.conf 591 B

12345678910111213141516171819202122
  1. upstream git {
  2. server 10.200.200.203:10080;
  3. }
  4. # git
  5. server {
  6. listen 80;
  7. server_name test-git.proginn.com;
  8. location = /robots.txt {
  9. alias /code/web/norobots.txt;
  10. }
  11. set $temp_request_id $http_x_request_id;
  12. if ($temp_request_id = "") {
  13. set $temp_request_id $request_id;
  14. }
  15. location / {
  16. proxy_pass http://git/;
  17. proxy_set_header Host $http_host;
  18. proxy_set_header X-Real-IP $http_x_real_ip;
  19. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  20. # proxy_set_header X-Forwarded-Proto $scheme;
  21. }
  22. }