Add basic auth and ssl