File tree Expand file tree Collapse file tree 3 files changed +0
-18
lines changed
Expand file tree Collapse file tree 3 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -25,24 +25,16 @@ provides:
2525 type: cc_uploader
2626 properties:
2727 - internal_hostname
28- - http_port
2928 - https_port
3029
3130properties:
3231 internal_hostname:
3332 description: "Hostname by which clients will communicate with the cc uploader"
3433 default: cc-uploader.service.cf.internal
35- http_port:
36- description: "Port by which clients will communicate with the cc uploader using http"
37- default: 9090
3834 https_port:
3935 description: "Port by which clients will communicate with the cc uploader using https (mutual TLS)"
4036 default: 9091
4137
42- temporary_disable_non_tls_endpoints:
43- description: "nginx_cc and cc_uploader components disable non-TLS endpoints"
44- default: true
45-
4638 capi.cc_uploader.bind_addr:
4739 description: "Address of interface on which to serve files"
4840 default: "0.0.0.0"
Original file line number Diff line number Diff line change 1212 end
1313 config[:lager_config] = { log_level: p("capi.cc_uploader.log_level"), time_format: p("capi.cc_uploader.logging.format.timestamp") }
1414
15- config[:listen_addr] = "#{p("capi.cc_uploader.bind_addr")}:#{p("http_port")}"
1615 if_p("capi.cc_uploader.debug_port") do |debug_port|
1716 config[:debug_server_config] = { debug_address: "#{p("capi.cc_uploader.debug_bind_addr")}:#{debug_port}" }
1817 end
3130 if_p("capi.cc_uploader.cc.job_polling_interval_in_seconds") do |interval|
3231 config[:job_polling_interval_in_seconds] = "#{interval}s"
3332 end
34-
35- config[:disable_non_tls] = !!p('temporary_disable_non_tls_endpoints')
3633%>
3734<%= config.to_json %>
Original file line number Diff line number Diff line change @@ -18,13 +18,6 @@ module Test
1818 let ( :template ) { job . template ( 'config/cc_uploader_config.json' ) }
1919
2020 describe 'default settings' do
21- it 'defaults disable_non_tls to true' do
22- rendered_template = template . render ( { } , consumes : links )
23- parsed_template = JSON . parse ( rendered_template )
24-
25- expect ( parsed_template [ 'disable_non_tls' ] ) . to be ( true )
26- end
27-
2821 it 'does not include debug_server_config by default' do
2922 rendered_template = template . render ( { } , consumes : links )
3023 parsed_template = JSON . parse ( rendered_template )
You can’t perform that action at this time.
0 commit comments