Skip to content

Commit 1f9b09c

Browse files
authored
cc-uploader: remove http config (#621)
- http_port (also as link property) - temporary_disable_non_tls_endpoints - requires cloudfoundry/cc-uploader#351
1 parent dc3cfbe commit 1f9b09c

File tree

3 files changed

+0
-18
lines changed

3 files changed

+0
-18
lines changed

jobs/cc_uploader/spec

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,16 @@ provides:
2525
type: cc_uploader
2626
properties:
2727
- internal_hostname
28-
- http_port
2928
- https_port
3029

3130
properties:
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"

jobs/cc_uploader/templates/cc_uploader_config.json.erb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
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
@@ -31,7 +30,5 @@
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 %>

spec/cc_uploader/cc_uploader_config_spec.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)