feat: add configurable HTTP port
All checks were successful
renovate / renovate (push) Successful in 20s
Docker Build and Push / build-and-push (push) Successful in 1m45s

This commit is contained in:
2025-12-28 20:09:31 +07:00
parent bf7f7bd8da
commit b5862bd7a0
3 changed files with 4 additions and 2 deletions

View File

@@ -193,7 +193,8 @@ func (cw *CustomWriter) AddInteraction(interaction Interaction) {
var redirectTLS = false
func NewHTTPServer() error {
listener, err := net.Listen("tcp", ":80")
httpPort := utils.Getenv("HTTP_PORT", "8080")
listener, err := net.Listen("tcp", ":"+httpPort)
if err != nil {
return errors.New("Error listening: " + err.Error())
}