feat: hub console backend — complete API surface

This commit is contained in:
2026-07-04 16:14:12 +05:30
parent c8adaf7815
commit 707323b68c
10 changed files with 1302 additions and 42 deletions

View File

@@ -21,6 +21,11 @@ type Config struct {
NatsUser string
NatsPassword string
AILayerBaseURL string // AI decision-engine service base URL (e.g. http://rider-api:8082)
SMTPHost string
SMTPPort string
SMTPUser string
SMTPPassword string
SMTPFrom string
}
func Load() *Config {
@@ -41,6 +46,11 @@ func Load() *Config {
NatsUser: getEnv("NATS_USER", "doormile"),
NatsPassword: getEnv("NATS_PASSWORD", "Package@321#"),
AILayerBaseURL: getEnv("AI_LAYER_BASE_URL", "https://routemate.workolik.com"),
SMTPHost: getEnv("SMTP_HOST", ""),
SMTPPort: getEnv("SMTP_PORT", "465"),
SMTPUser: getEnv("SMTP_USER", ""),
SMTPPassword: getEnv("SMTP_PASSWORD", ""),
SMTPFrom: getEnv("SMTP_FROM", ""),
}
}