mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-05-12 04:57:50 +00:00
25 lines
1.1 KiB
Diff
25 lines
1.1 KiB
Diff
From cd6eb82cf1f4ca4461bab6b031bc182362e28989 Mon Sep 17 00:00:00 2001
|
|
From: Ivan Davydov <lotigara@lotigara.ru>
|
|
Date: Fri, 16 Aug 2024 16:31:59 +0300
|
|
Subject: [PATCH] Fix warning in server/startup.go
|
|
|
|
---
|
|
server/startup.go | 5 +----
|
|
1 file changed, 1 insertion(+), 4 deletions(-)
|
|
|
|
diff --git a/server/startup.go b/server/startup.go
|
|
index e32e749..343e00c 100644
|
|
--- a/server/startup.go
|
|
+++ b/server/startup.go
|
|
@@ -81,10 +81,7 @@ func Serve(ctx *cli.Context) error {
|
|
|
|
var listener net.Listener
|
|
if cfg.Server.HttpOnlyMode {
|
|
- log.Info().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.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 {
|