增加port_ssl端口
This commit is contained in:
@@ -67,6 +67,7 @@ bool fastweb::app::start(const std::string& config_filepath)
|
||||
network::http::host_config host_config;
|
||||
host_config.domain = iter->first;
|
||||
host_config.port = iter->second.port;
|
||||
host_config.port_ssl = iter->second.port_ssl;
|
||||
host_config.ssl = iter->second.https;
|
||||
ws_config.host.push_back(host_config);
|
||||
|
||||
|
||||
@@ -101,6 +101,7 @@ void fastweb::config::cache()
|
||||
|
||||
struct config::domain dm;
|
||||
dm.port = ylib::stoi(m_ini.read(website.domain[i], "port"));
|
||||
dm.port_ssl = ylib::stoi(m_ini.read(website.domain[i], "port_ssl"));
|
||||
dm.https = m_ini.read(website.domain[i],"https")=="1";
|
||||
dm.ssl.pem_key = ylib::file::read(PATH_EX(m_ini.read(website.domain[i], "ssl_key")));
|
||||
dm.ssl.pem_cert = ylib::file::read(PATH_EX(m_ini.read(website.domain[i], "ssl_pem")));
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace fastweb
|
||||
struct domain {
|
||||
bool https = false;
|
||||
ushort port = 0;
|
||||
ushort port_ssl = 0;
|
||||
network::http::ssl_config ssl;
|
||||
};
|
||||
struct scripts {
|
||||
|
||||
Reference in New Issue
Block a user