Some changes

This commit is contained in:
Vladislav Khorev 2018-08-26 14:22:13 +03:00
parent 4ef8dec316
commit e6922deb0b
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ server::server(const std::string& address, const std::string& port,
const std::string& doc_root, boost::asio::ssl::context& inSslContext) const std::string& doc_root, boost::asio::ssl::context& inSslContext)
: io_context_(1), : io_context_(1),
signals_(io_context_), signals_(io_context_),
acceptor_(io_context_, boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), 8043)), acceptor_(io_context_, boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), 443)),
connection_manager_(), connection_manager_(),
request_handler_(doc_root), request_handler_(doc_root),
sslContext(inSslContext), sslContext(inSslContext),

View File

@ -36,9 +36,9 @@ int main()
std::function<std::string(std::size_t, boost::asio::ssl::context_base::password_purpose)> f = [](std::size_t, boost::asio::ssl::context_base::password_purpose) -> std::string { return ""; }; std::function<std::string(std::size_t, boost::asio::ssl::context_base::password_purpose)> f = [](std::size_t, boost::asio::ssl::context_base::password_purpose) -> std::string { return ""; };
sslContext.set_password_callback(f); sslContext.set_password_callback(f);
sslContext.use_certificate_chain_file("server.crt"); sslContext.use_certificate_chain_file("C:/Work/temp/browser.fishrungames.com/fullchain1.pem");
sslContext.use_private_key_file("server.key", boost::asio::ssl::context::pem); sslContext.use_private_key_file("C:/Work/temp/browser.fishrungames.com/privkey1.pem", boost::asio::ssl::context::pem);
sslContext.use_tmp_dh_file("dh2048.pem"); sslContext.use_tmp_dh_file("dh2048.pem");