Removed hardcoded options for secure server and made them a required object argument