anchor.diff:      proxy_buffering off;
       proxy_read_timeout 120s;
   
  -    # 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.
  -    proxy_pass http://<%= ENV['HOST_IP'] %>:6000$request_uri;
  +    proxy_pass http://gitorious_http_backend;
     }
   
     # Proxy internal requests for archives to git-archive-daemon
  
positive.code:     proxy_read_timeout 120s;
  
      rewrite /_internal/archiver(/.*) $1 break;
      proxy_pass http://archiver:5000$request_uri;
    }
  
    # Add caching headers for static assets
  
negative.code: 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;
    try_files $uri/index.html $uri.html $uri @app;
  
    # Set maximum allowed size of the client request body.
    # It's overriden later (in sections below) for gitorious-http-backend to allow http pushing.
  