aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authorAlexey Efimov <xeno@prnwatch.com>2022-05-23 20:19:46 +0300
committerAlexey Efimov <xeno@prnwatch.com>2022-05-23 20:19:46 +0300
commit9dd615edaba4dfedb926ab0cd2a8c815c1f1941b (patch)
tree1a85fd2901d789b00c92bd90881c29979468554d /library/cpp
parent5ceeb213cb4dfda5141c188bf6578309fe6da570 (diff)
downloadydb-9dd615edaba4dfedb926ab0cd2a8c815c1f1941b.tar.gz
add https support to builtin monitoring KIKIMR-14868
ref:1350d4933ca320aa0d84b8e7aac2a1e957942567
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/actors/http/http_proxy_acceptor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/library/cpp/actors/http/http_proxy_acceptor.cpp b/library/cpp/actors/http/http_proxy_acceptor.cpp
index f73c2397802..c44921fe0c1 100644
--- a/library/cpp/actors/http/http_proxy_acceptor.cpp
+++ b/library/cpp/actors/http/http_proxy_acceptor.cpp
@@ -66,10 +66,11 @@ protected:
if (err == 0) {
err = Socket->Socket.Bind(bindAddress.get());
}
+ TStringBuf schema = Endpoint->Secure ? "https://" : "http://";
if (err == 0) {
err = Socket->Socket.Listen(LISTEN_QUEUE);
if (err == 0) {
- LOG_INFO_S(ctx, HttpLog, "Listening on " << bindAddress->ToString());
+ LOG_INFO_S(ctx, HttpLog, "Listening on " << schema << bindAddress->ToString());
SetNonBlock(Socket->Socket);
ctx.Send(Poller, new NActors::TEvPollerRegister(Socket, SelfId(), SelfId()));
TBase::Become(&TAcceptorActor::StateListening);
@@ -77,7 +78,7 @@ protected:
return;
}
}
- LOG_WARN_S(ctx, HttpLog, "Failed to listen on " << bindAddress->ToString() << " - retrying...");
+ LOG_WARN_S(ctx, HttpLog, "Failed to listen on " << schema << bindAddress->ToString() << " - retrying...");
ctx.ExecutorThread.Schedule(TDuration::Seconds(1), event.Release());
}