Updated config, added init script and added support for https and correctly set the path. Also disabled http agent.