summaryrefslogtreecommitdiffstats
path: root/ansible/roles/nginx
diff options
context:
space:
mode:
authorTomáš Levora <t.levora@partner.samsung.com>2019-09-04 14:18:54 +0200
committerTomáš Levora <t.levora@partner.samsung.com>2019-10-15 12:31:56 +0000
commit9c5a68d7e04243684190a086786290f0eba3cc7c (patch)
treeccc438fa8d8e7033d436b3774b221ef47dd35fd7 /ansible/roles/nginx
parent1b402b0db23d65f9c6c716c803fa350839ff2f6b (diff)
Remove git repos list and simulation
As no external git repo should be required, removing the list and the simulation Issue-ID: OOM-2014 Change-Id: I7b8bbaab93db173bc3f1438592d288f6090d3641 Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Diffstat (limited to 'ansible/roles/nginx')
-rw-r--r--ansible/roles/nginx/templates/nginx.conf.j239
1 files changed, 0 insertions, 39 deletions
diff --git a/ansible/roles/nginx/templates/nginx.conf.j2 b/ansible/roles/nginx/templates/nginx.conf.j2
index 9860a168..be1170f0 100644
--- a/ansible/roles/nginx/templates/nginx.conf.j2
+++ b/ansible/roles/nginx/templates/nginx.conf.j2
@@ -59,43 +59,4 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
-
-# git simulations
- server {
- listen 80;
- listen 443 ssl;
- server_name {% for host in simulated_hosts.git -%}
- {{ host + " " }}
- {%- endfor %};
- ssl_certificate /etc/nginx/certs/nexus_server.crt;
- ssl_certificate_key /etc/nginx/certs/nexus_server.key;
-
- keepalive_timeout 5 5;
- proxy_buffering off;
-
- location / {
- try_files $uri $uri/ @git;
- }
-
- location @git {
-
- # Set chunks to unlimited, as the body's can be huge
- client_max_body_size 0;
-
- fastcgi_param SCRIPT_FILENAME /usr/libexec/git-core/git-http-backend;
- fastcgi_param QUERY_STRING $args;
- fastcgi_param HTTP_HOST $server_name;
- fastcgi_param PATH_INFO $uri;
-
- include fastcgi_params;
-
- fastcgi_param GIT_HTTP_EXPORT_ALL "";
- fastcgi_param GIT_PROJECT_ROOT /srv/git/$host/;
-
- # Forward REMOTE_USER as we want to know when we are authenticated
- fastcgi_param REMOTE_USER $remote_user;
-
- fastcgi_pass unix:/var/run/fcgiwrap.socket;
- }
- }
}