56int main(
int argc,
char* argv[]) {
61 using LegacyWebApp = express::legacy::
in::WebApp;
62 using LegacySocketAddress = LegacyWebApp::SocketAddress;
64 const LegacyWebApp legacyApp;
71 const core::socket::
State& state) {
74 VLOG(1) << instanceName <<
" listening on '" << socketAddress
.toString() <<
"'";
77 VLOG(1) << instanceName <<
" disabled";
88 using TLSWebApp = express::tls::
in::WebApp;
89 using TLSSocketAddress = TLSWebApp::SocketAddress;
91 const TLSWebApp tlsApp;
93 tlsApp
.getConfig().setCert("/home/voc/projects/snodec/snode.c/certs/wildcard.home.vchrist.at_-_snode.c_-_server.pem");
94 tlsApp
.getConfig().setCertKey("/home/voc/projects/snodec/snode.c/certs/Volker_Christian_-_Web_-_snode.c_-_server.key.encrypted.pem");
106 VLOG(1) << instanceName <<
" listening on '" << socketAddress
.toString() <<
"'";
109 VLOG(1) << instanceName <<
" disabled";
112 LOG(ERROR) << instanceName <<
" " << socketAddress
.toString() <<
": " << state
.what();
115 LOG(FATAL) << instanceName <<
" " << socketAddress
.toString() <<
": " << state
.what();