refactor: remove ASPNETCORE_PORT configuration from server settings

This commit is contained in:
Marco Pedone 2025-10-29 09:24:49 +01:00
parent c389a58832
commit f3c4f231a9

View file

@ -74,10 +74,6 @@ func Load() *Config {
// Server config // Server config
Cfg.Server.Port = getEnvAsInt("PORT", 1323) Cfg.Server.Port = getEnvAsInt("PORT", 1323)
if os.Getenv("ASPNETCORE_PORT") != "" {
Cfg.Server.Port = getEnvAsInt("ASPNETCORE_PORT", 1323)
}
// Validate required config // Validate required config
if Cfg.Database.Password == "" { if Cfg.Database.Password == "" {
fmt.Printf("required environment variable POSTGRES_PASSWORD not set\n") fmt.Printf("required environment variable POSTGRES_PASSWORD not set\n")