| 123456789101112131415161718 |
- 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;
- }
- 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;
- }
- }
|