Remove announce public

This commit is contained in:
Pablu23
2025-09-30 19:37:07 +02:00
parent 2d8323809a
commit 88fa68fa4c
4 changed files with 15 additions and 90 deletions

View File

@@ -6,7 +6,6 @@ import (
"fmt"
"io"
"net/http"
"net/url"
"os"
"time"
@@ -42,15 +41,6 @@ func main() {
mux := http.NewServeMux()
mux.HandleFunc("/", router.ServeHTTP)
if config.General.AnnouncePublic {
h, err := url.JoinPath("/", config.General.HealthEndpoint)
if err != nil {
log.Error().Err(err).Str("endpoint", config.General.HealthEndpoint).Msg("Could not create endpoint path")
h = "/healthz"
}
mux.HandleFunc(h, router.Healthz)
}
pipeline := configureMiddleware(config)
server := http.Server{