Made TLS, Port and Resource configurable