fix(config): reject an empty checker region
UPTIME_CHECKER_REGION= passed the required check and started a checker that no monitor could ever be assigned to. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
70190446ff
commit
ea6f022112
1 file changed
+1
-1
@@ -72,7 +72,7 @@ func (a API) Validate() error {
|
|||||||
|
|
||||||
type Checker struct {
|
type Checker struct {
|
||||||
Common
|
Common
|
||||||
Region string `env:"UPTIME_CHECKER_REGION,required"`
|
Region string `env:"UPTIME_CHECKER_REGION,required,notEmpty"`
|
||||||
HealthListen string `env:"UPTIME_CHECKER_HEALTH_LISTEN" envDefault:":8081"`
|
HealthListen string `env:"UPTIME_CHECKER_HEALTH_LISTEN" envDefault:":8081"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user