Commit 5556dd7787ac929e670c2a49016d74a17cedb10c
1 parent
85cf8df9
Exists in
master
and in
17 other branches
Remove chef-server nginx template
Showing
1 changed file
with
0 additions
and
85 deletions
Show diff stats
files/gitlab-cookbooks/gitlab/templates/default/nginx_chef_api_lb.conf.erb
... | ... | @@ -1,85 +0,0 @@ |
1 | -server { | |
2 | - listen <%= @server_port %>; | |
3 | - server_name <%= @server_name %>; | |
4 | - access_log /var/log/chef-server/nginx/access.log opscode; | |
5 | - | |
6 | - <% if @server_proto == "https" -%> | |
7 | - ssl on; | |
8 | - ssl_certificate <%= @ssl_certificate %>; | |
9 | - ssl_certificate_key <%= @ssl_certificate_key %>; | |
10 | - | |
11 | - ssl_session_timeout 5m; | |
12 | - | |
13 | - ssl_protocols <%= @ssl_protocols %>; | |
14 | - ssl_ciphers <%= @ssl_ciphers %>; | |
15 | - ssl_prefer_server_ciphers on; | |
16 | - | |
17 | - <% end -%> | |
18 | - root <%= File.join(@dir, "html") %>; | |
19 | - | |
20 | - client_max_body_size <%= @client_max_body_size %>; | |
21 | - | |
22 | - proxy_set_header Host $host:$server_port; | |
23 | - proxy_set_header X-Real-IP $remote_addr; | |
24 | - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
25 | - proxy_set_header X-Forwarded-Proto <%= @server_proto %>; | |
26 | - proxy_pass_request_headers on; | |
27 | - proxy_connect_timeout 1; | |
28 | - proxy_send_timeout 300; | |
29 | - proxy_read_timeout 300; | |
30 | - | |
31 | - error_page 404 =404 /404.html; | |
32 | - error_page 503 =503 /503.json; | |
33 | - | |
34 | - location /nginx_status { | |
35 | - stub_status on; | |
36 | - access_log off; | |
37 | - allow 127.0.0.1; | |
38 | - deny all; | |
39 | - } | |
40 | - | |
41 | - location /version { | |
42 | - types { } | |
43 | - default_type text/plain; | |
44 | - alias /opt/chef-server/version-manifest.txt; | |
45 | - } | |
46 | - | |
47 | - location /docs { | |
48 | - index index.html ; | |
49 | - alias /opt/chef-server/docs; | |
50 | - } | |
51 | - | |
52 | - # bookshelf | |
53 | - location ~ "/<%= node['chef_server']['erchef']['s3_bucket'] %>/{0,1}.*$" { | |
54 | - proxy_pass http://bookshelf; | |
55 | - } | |
56 | - | |
57 | - location ~ "^/(?:stylesheets|javascripts|images|facebox|css|favicon|robots|humans)/{0,1}.*$" { | |
58 | - if ($http_x_chef_version ~* "^(\d+\.\d+?)\..+$") { | |
59 | - error_page 400 =400 /400-chef_client_manage.json; | |
60 | - return 400; | |
61 | - } | |
62 | - proxy_pass http://chef_server_webui; | |
63 | - proxy_pass_request_headers off; | |
64 | - proxy_cache webui-cache; | |
65 | - proxy_cache_valid 200 302 300m; | |
66 | - proxy_cache_valid 404 1m; | |
67 | - } | |
68 | - | |
69 | - location = /_status { | |
70 | - proxy_pass http://erchef/_status; | |
71 | - } | |
72 | - | |
73 | - location = /_status/ { | |
74 | - proxy_pass http://erchef/_status; | |
75 | - } | |
76 | - | |
77 | - location / { | |
78 | - set $my_upstream erchef; | |
79 | - if ($http_x_ops_userid = "") { | |
80 | - set $my_upstream chef_server_webui; | |
81 | - } | |
82 | - proxy_redirect http://$my_upstream /; | |
83 | - proxy_pass http://$my_upstream; | |
84 | - } | |
85 | -} |