refactor config file and add tls support
refactor config file and add tls support

AdriVanHoudt/incus,samuelebistoletti/incus,Imgur/incus,AdriVanHoudt/incus,AdriVanHoudt/incus,samuelebistoletti/incus,samuelebistoletti/incus,Imgur/incus,Imgur/incus