This commit is contained in:
Ivan Davydov 2024-08-17 22:40:55 +03:00
parent 9c7e513623
commit 7fc84a085e
5 changed files with 1342994 additions and 0 deletions

View file

@ -81,6 +81,7 @@ func Serve(ctx *cli.Context) error {
var listener net.Listener
if cfg.Server.HttpOnlyMode {
log.Warn().Msgf("Starting pages-server in HTTP-only mode. Some features like encrypted connections and custom domains are not available in this mode. It is advisable to run behind a reverse-proxy.")
log.Info().Msgf("Create TCP listener on %s", listeningHTTPAddress)
listener_, err := net.Listen("tcp", listeningHTTPAddress)
if err != nil {