anchor.diff:                               ]
                          }]
                        ),
  -    case Redirect of
  +    case Redirect and SSL of
           true ->
               {ok, _} = cowboy:start_http( redirect_handler
                                             , 100
  
positive.code:         false ->
              {ok, _} = cowboy:start_http( http_handler
                                           , 100
                                           , [ {port, ListenPort} ]
                                           , [{env, [{dispatch, Dispatch}]}]
                                         )
      end,
  
negative.code:                {ok, V} -> V
             end,
      ok = ?SETCONFIG(vsn, Vsn),
      ok = enforce_security(),
      lager:debug("Init: config = ~p", [?ALLCONFIG]),
      ok.
  
  enforce_security() ->
      SSL = ?CONFIG(ssl),
      Hostname0 = ?CONFIG(hostname),
      Hostname = case SSL of
                     false ->
                         "localhost";
                     _ ->
                         Hostname0
                 end,
      ?SETCONFIG(hostname, Hostname),
      ok.
  
  
  
  start_database() ->
  