diff --git a/svc/main.go b/svc/main.go index 901c921..2d7dd5f 100644 --- a/svc/main.go +++ b/svc/main.go @@ -616,8 +616,16 @@ func main() { ), ) - log.Println("✅ Server çalışıyor: http://localhost:8080") - log.Fatal(http.ListenAndServe(":8080", handler)) + port := strings.TrimSpace(os.Getenv("HTTPPORT")) + if port == "" { + port = "8080" + } + if !strings.HasPrefix(port, ":") { + port = ":" + port + } + + log.Println("Server calisiyor: http://localhost" + port) + log.Fatal(http.ListenAndServe(port, handler)) } func mountSPA(r *mux.Router) {