From 7be9409a15552e6c42fc2e311a90f3c3a129375b Mon Sep 17 00:00:00 2001 From: Alexander Nakhleh Date: Thu, 17 May 2018 08:48:36 -0400 Subject: [PATCH] Set internet connectivity functionality off by default. Other configs. Also include internet related parameters in application.example.conf. It is easy to accidentally commit connection settings while developing, so by putting them in the example config that becomes the gitignored application.dev.config, this change hopes to cut down on accidentally commited defaults changes --- conf/application.conf | 4 ++-- conf/application.example.conf | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/conf/application.conf b/conf/application.conf index de9ba3c7a..726192efb 100644 --- a/conf/application.conf +++ b/conf/application.conf @@ -52,7 +52,7 @@ play.modules.enabled += "femr.util.dependencyinjection.modules.SeederModule" # This scheduler will check for internet connectivity and inform and # endpoint defined by locationDataEndpoint # It will also try to build a reverse SSH connection to the server running fEMR -internetconnection.enableInternetConnectivityFunctionality = true +internetconnection.enableInternetConnectivityFunctionality = false # Time to wait before the task times out internetconnection.timeoutInMiliseconds = 1000 # How often the scheduled task will check for internet @@ -66,7 +66,7 @@ internetconnection.sshUser = "" internetconnection.sshHost = "" # SSH key that is not password protected internetconnection.pathToSshKey = "" -#internetconnection.pathToSshKnownHosts = "/home/kevin/.ssh/known_hosts" +#internetconnection.pathToSshKnownHosts = "/home//.ssh/known_hosts" # Remote port listening for an SSH connection internetconnection.remoteSshPort = 0 # Remote port that will forward SSH traffic diff --git a/conf/application.example.conf b/conf/application.example.conf index 394c3932c..96d74c81e 100644 --- a/conf/application.example.conf +++ b/conf/application.example.conf @@ -10,3 +10,16 @@ photos.path="./Upload/Pictures/Patients" photos.encounterPath="./Upload/Pictures/PatientEncounters" photos.defaultProfilePhoto="./public/img/defaultProfile.png" csv.path="./Upload/CSV" + +internetconnection.enableInternetConnectivityFunctionality = false +internetconnection.sshUser = "" +internetconnection.sshHost = "" +# SSH key that is not password protected +internetconnection.pathToSshKey = "" +# Remote port listening for an SSH connection +internetconnection.remoteSshPort = 0 +# Remote port that will forward SSH traffic +internetconnection.remoteSshPortForward = 0 +# Local port listening for an SSH conncetion +internetconnection.localSshPort = 0 +internetconnection.sshTimeoutInMilliseconds = 100000