summaryrefslogtreecommitdiff
path: root/test/e2e/assets/nginx.conf
blob: 2a161afebb17c815c89d449dd9ddbe3cc24cba68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
error_log /dev/stdout info;
worker_processes 1;

events { worker_connections 1024; }

http {

   server {
    listen  0.0.0.0:8080;

    root /tmp/testdata.git;

    location ~ /argocd-image-updater-e2e(/.*) {
      # Set chunks to unlimited, as the body's can be huge
  	  client_max_body_size			0;

  	  fastcgi_param	SCRIPT_FILENAME		/usr/lib/git-core/git-http-backend;
  	  include		/etc/nginx/fastcgi_params;
  	  fastcgi_param	GIT_HTTP_EXPORT_ALL	"";
  	  fastcgi_param	GIT_PROJECT_ROOT	/tmp;
  	  fastcgi_param	PATH_INFO		$1;
    	
  	  # Hard-coded credentials for Git in this case
  	  fastcgi_param	REMOTE_USER		"admin";
  	  fastcgi_pass	unix:/var/run/fcgiwrap.socket;
    }
  }
  
}