anchor.diff: -upstream rails {
  -  server web:3000 fail_timeout=0;
  -}
  -
  -# gitorious-http-backend is running on the host (because we want custom hooks
  -# to be run *on the host*), so here we point Nginx to port 6000 of Docker host.
  -upstream gitorious_http_backend {
  -  server <%= ENV['HOST_IP'] %>:6000 fail_timeout=0;
  -}
  -
  -upstream git_archive_daemon {
  -  server archiver:5000 fail_timeout=0;
  -}
  -
   server {
     listen 80;
     root /usr/src/app/public;
  
positive.code:     proxy_buffering off;
      proxy_read_timeout 120s;
  
      proxy_pass http://gitorious_http_backend;
    }
  
    # Proxy internal requests for archives to git-archive-daemon
  
negative.code:     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Forwarded-Proto $scheme;
      proxy_set_header Host $http_host;
      proxy_pass http://web:3000$request_uri;
      proxy_redirect off;
      error_page 500 502 504 /500.html; # RAILS error pages
    }
  