COOPR 542: Add ability to configure UI to use TLS

SSL/TLS implemented for coopr-ui.
This function should return the value, directly. Do not assign it to a variable.