move port in config and add ssl support