github.com/argoproj/argo-cd@v1.8.7/test/fixture/testrepos/nginx.conf (about) 1 error_log /dev/stdout info; 2 worker_processes 1; 3 4 events { worker_connections 1024; } 5 6 http { 7 8 server { 9 listen 9080; 10 listen 0.0.0.0:9443 ssl http2; 11 12 auth_basic "Restricted"; 13 auth_basic_user_file .htpasswd; 14 root /tmp/argo-e2e; 15 16 ssl_certificate ../certs/argocd-test-server.crt; 17 ssl_certificate_key ../certs/argocd-test-server.key; 18 ssl_protocols TLSv1.2 TLSv1.1 TLSv1; 19 20 location ~ /argo-e2e/testdata.git/helm-repo(/.*) { 21 # Set chunks to unlimited, as the body's can be huge 22 client_max_body_size 0; 23 24 root /tmp/; 25 } 26 27 location ~ /argo-e2e(/.*) { 28 # Set chunks to unlimited, as the body's can be huge 29 client_max_body_size 0; 30 31 fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend; 32 include /etc/nginx/fastcgi_params; 33 fastcgi_param GIT_HTTP_EXPORT_ALL ""; 34 fastcgi_param GIT_PROJECT_ROOT /tmp/argo-e2e; 35 fastcgi_param PATH_INFO $1; 36 37 # Forward REMOTE_USER as we want to know when we are authenticated 38 fastcgi_param REMOTE_USER $remote_user; 39 fastcgi_pass unix:/var/run/fcgiwrap.socket; 40 } 41 } 42 43 # server block for strict verification of client certs 44 server { 45 listen 0.0.0.0:9444 ssl http2; 46 47 auth_basic "Restricted"; 48 auth_basic_user_file .htpasswd; 49 root /tmp/argo-e2e; 50 51 ssl_certificate ../certs/argocd-test-server.crt; 52 ssl_certificate_key ../certs/argocd-test-server.key; 53 ssl_client_certificate ../certs/argocd-test-ca.crt; 54 ssl_verify_client on; 55 ssl_protocols TLSv1.2 TLSv1.1 TLSv1; 56 57 location ~ /argo-e2e/testdata.git/helm-repo(/.*) { 58 # Set chunks to unlimited, as the body's can be huge 59 client_max_body_size 0; 60 61 root /tmp/; 62 } 63 64 location ~ /argo-e2e(/.*) { 65 # Set chunks to unlimited, as the body's can be huge 66 client_max_body_size 0; 67 68 fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend; 69 include /etc/nginx/fastcgi_params; 70 fastcgi_param GIT_HTTP_EXPORT_ALL ""; 71 fastcgi_param GIT_PROJECT_ROOT /tmp/argo-e2e; 72 fastcgi_param PATH_INFO $1; 73 74 # Forward REMOTE_USER as we want to know when we are authenticated 75 fastcgi_param REMOTE_USER $remote_user; 76 fastcgi_pass unix:/var/run/fcgiwrap.socket; 77 } 78 } 79 }