feat(config): add configurable host binding for server (#454)

* feat(config): add configurable host binding for server
This commit is contained in:
vuonglv(Andy)
2025-12-08 22:16:39 +07:00
committed by GitHub
parent 6ad188921c
commit 5c3a013cd1
4 changed files with 10 additions and 2 deletions

View File

@@ -300,7 +300,7 @@ func NewServer(cfg *config.Config, authManager *auth.Manager, accessManager *sdk
// Create HTTP server
s.server = &http.Server{
Addr: fmt.Sprintf(":%d", cfg.Port),
Addr: fmt.Sprintf("%s:%d", cfg.Host, cfg.Port),
Handler: engine,
}