Files
f53155562f [management, reverse proxy] Add reverse proxy feature (#5291)
* implement reverse proxy


---------

Co-authored-by: Alisdair MacLeod <[email protected]>
Co-authored-by: mlsmaycon <[email protected]>
Co-authored-by: Eduard Gert <[email protected]>
Co-authored-by: Viktor Liu <[email protected]>
Co-authored-by: Diego Noguês <[email protected]>
Co-authored-by: Diego Noguês <[email protected]>
Co-authored-by: Bethuel Mmbaga <[email protected]>
Co-authored-by: Zoltan Papp <[email protected]>
Co-authored-by: Ashley Mensah <[email protected]>
2026-02-13 19:37:43 +01:00

22 lines
578 B
Go

package proxy
import (
stdlog "log"
log "github.com/sirupsen/logrus"
)
const (
// HTTP server type identifiers for logging
logtagFieldHTTPServer = "http-server"
logtagValueHTTPS = "https"
logtagValueACME = "acme"
logtagValueDebug = "debug"
)
// newHTTPServerLogger creates a standard library logger that writes to logrus
// with the specified server type field.
func newHTTPServerLogger(logger *log.Logger, serverType string) *stdlog.Logger {
return stdlog.New(logger.WithField(logtagFieldHTTPServer, serverType).WriterLevel(log.WarnLevel), "", 0)
}