found wrong variable defined app-mode; needed to be app-ssl