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

Commit 2900ffc

Browse files
Merge pull request #767 from grtjn/753-use-https-for-rest
Fixed #753: added new use-https-for-rest property
2 parents cfd2978 + 0f0ede4 commit 2900ffc

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
@@ -2238,7 +2238,7 @@ def mlRest
22382238
:http_connection_open_timeout => @properties["ml.http.open-timeout"].to_i,
22392239
:http_connection_read_timeout => @properties["ml.http.read-timeout"].to_i,
22402240
:http_connection_retry_delay => @properties["ml.http.retry-delay"].to_i,
2241-
:use_https_for_rest => @properties["ml.ssl-certificate-template"].present?
2241+
:use_https_for_rest => @properties["ml.ssl-certificate-template"].present? || @properties["ml.use-https-for-rest"] == "true"
22422242
})
22432243
else
22442244
@mlRest

0 commit comments

Comments
 (0)