comparison OrthancServer/main.cpp @ 604:489f6a375277

parameter for better security
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 18 Oct 2013 10:32:55 +0200
parents c9a5d72f8481
children b1a0990ad40c
comparison
equal deleted inserted replaced
603:49945044b06d 604:489f6a375277
385 MongooseServer httpServer; 385 MongooseServer httpServer;
386 httpServer.SetPortNumber(GetGlobalIntegerParameter("HttpPort", 8042)); 386 httpServer.SetPortNumber(GetGlobalIntegerParameter("HttpPort", 8042));
387 httpServer.SetRemoteAccessAllowed(GetGlobalBoolParameter("RemoteAccessAllowed", false)); 387 httpServer.SetRemoteAccessAllowed(GetGlobalBoolParameter("RemoteAccessAllowed", false));
388 httpServer.SetIncomingHttpRequestFilter(httpFilter); 388 httpServer.SetIncomingHttpRequestFilter(httpFilter);
389 389
390 httpServer.SetAuthenticationEnabled(GetGlobalBoolParameter("AuthenticationEnabled", false)); 390 httpServer.SetAuthenticationEnabled(GetGlobalBoolParameter("AuthenticationEnabled", true));
391 SetupRegisteredUsers(httpServer); 391 SetupRegisteredUsers(httpServer);
392 392
393 if (GetGlobalBoolParameter("SslEnabled", false)) 393 if (GetGlobalBoolParameter("SslEnabled", false))
394 { 394 {
395 std::string certificate = 395 std::string certificate =