Fix docker scaling and show loading MOTD (#529)

* fix: Reduce log spam for sleeping servers

* fix: Fix autodownscaling for initial player connection

* fix: Instant route updating when a docker container is downscaled

* feat: Show asleep or loading motd while the server is waking up
This commit is contained in:
Lenart Kos
2026-02-26 03:46:51 +01:00
committed by GitHub
parent ea6419bece
commit 2023e73892
13 changed files with 220 additions and 78 deletions
+2 -1
View File
@@ -69,7 +69,7 @@ func NewServer(ctx context.Context, config *Config) (*Server, error) {
Routes.RegisterAll(config.Mapping)
if config.Default != "" {
Routes.SetDefaultRoute(config.Default, "", nil, nil, "")
Routes.SetDefaultRoute(config.Default, "", nil, nil, "", "")
}
if config.ConnectionRateLimit < 1 {
@@ -83,6 +83,7 @@ func NewServer(ctx context.Context, config *Config) (*Server, error) {
autoScaleAllowDenyConfig)
connector.UseAsleepMOTD(config.AutoScale.AsleepMOTD)
connector.UseLoadingMOTD(config.AutoScale.LoadingMOTD)
clientFilter, err := NewClientFilter(config.ClientsToAllow, config.ClientsToDeny)
if err != nil {