Use PORT instead of UPAAS_PORT for listen port

This commit is contained in:
2025-12-29 16:15:05 +07:00
parent 0f2df60c58
commit 219a561473
4 changed files with 5 additions and 4 deletions

View File

@@ -89,6 +89,9 @@ func setupViper(name string) {
viper.AutomaticEnv()
// Defaults
// PORT is not prefixed with UPAAS_ for compatibility
_ = viper.BindEnv("PORT", "PORT")
viper.SetDefault("PORT", defaultPort)
viper.SetDefault("DEBUG", false)
viper.SetDefault("DATA_DIR", "./data")