Use PORT instead of UPAAS_PORT for listen port

This commit is contained in:
sneak committed 2025-12-29 16:15:05 +07:00
1 parent 0f2df60c58
commit 219a561473
4 files changed
+5 -4

No files matched your search

+3
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")