diff --git a/scripts/graphConf.js b/scripts/graphConf.js index 8a0b882..e565283 100644 --- a/scripts/graphConf.js +++ b/scripts/graphConf.js @@ -8,6 +8,9 @@ const host = false; // For implementations like Neptune where only single commands are allowed per request // set to true const SINGLE_COMMANDS_AND_NO_VARS = false; +// For implementations like Neptune where communication only over https is allowed +// set to true +const REST_USE_HTTPS = false; // Time out for the REST protocol. Increase it if the graphDB is slow. const REST_TIMEOUT = 2000 diff --git a/scripts/graphioGremlin.js b/scripts/graphioGremlin.js index e3f5b89..6b73d65 100644 --- a/scripts/graphioGremlin.js +++ b/scripts/graphioGremlin.js @@ -216,7 +216,11 @@ var graphioGremlin = (function(){ let server_port = $('#server_port').val(); let COMMUNICATION_PROTOCOL = $('#server_protocol').val(); if (COMMUNICATION_PROTOCOL == 'REST'){ - let server_url = "http://"+server_address+":"+server_port; + if(REST_USE_HTTPS){ + let server_url = "https://"+server_address+":"+server_port; + } else{ + let server_url = "http://"+server_address+":"+server_port; + } run_ajax_request(gremlin_query,server_url,query_type,active_node,message,callback); } else if (COMMUNICATION_PROTOCOL == 'websocket'){