Some changes
This commit is contained in:
parent
4ef8dec316
commit
e6922deb0b
@ -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),
|
||||||
|
4
main.cpp
4
main.cpp
@ -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");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user