Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Commit 0f0ede4

Browse files
committed
Fixed #753: added new use-https-for-rest property
1 parent b3c4e9b commit 0f0ede4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

deploy/default.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,12 @@ install-xcc=true
193193
#
194194
use-https=false
195195

196+
#
197+
# set this to true if you are accessing your rest server through
198+
# a proxy that uses https (but your rest server does not)
199+
#
200+
use-https-for-rest=false
201+
196202
## Security
197203
#
198204
# The authentication used for your appserver

deploy/lib/server_config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2236,7 +2236,7 @@ def mlRest
22362236
:http_connection_open_timeout => @properties["ml.http.open-timeout"].to_i,
22372237
:http_connection_read_timeout => @properties["ml.http.read-timeout"].to_i,
22382238
:http_connection_retry_delay => @properties["ml.http.retry-delay"].to_i,
2239-
:use_https_for_rest => @properties["ml.ssl-certificate-template"].present?
2239+
:use_https_for_rest => @properties["ml.ssl-certificate-template"].present? || @properties["ml.use-https-for-rest"] == "true"
22402240
})
22412241
else
22422242
@mlRest

0 commit comments

Comments
 (0)