feat: add Telegram bot with notifications and scheduler
This commit is contained in:
@@ -5,24 +5,26 @@ import (
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
DatabaseURL string
|
||||
JWTSecret string
|
||||
Port string
|
||||
ResendAPIKey string
|
||||
FromEmail string
|
||||
FromName string
|
||||
AppURL string
|
||||
DatabaseURL string
|
||||
JWTSecret string
|
||||
Port string
|
||||
ResendAPIKey string
|
||||
FromEmail string
|
||||
FromName string
|
||||
AppURL string
|
||||
TelegramBotToken string
|
||||
}
|
||||
|
||||
func Load() *Config {
|
||||
return &Config{
|
||||
DatabaseURL: getEnv("DATABASE_URL", "postgres://homelab:homelab@db:5432/homelab?sslmode=disable"),
|
||||
JWTSecret: getEnv("JWT_SECRET", "change-me-in-production"),
|
||||
Port: getEnv("PORT", "8080"),
|
||||
ResendAPIKey: getEnv("RESEND_API_KEY", ""),
|
||||
FromEmail: getEnv("FROM_EMAIL", "noreply@digital-home.site"),
|
||||
FromName: getEnv("FROM_NAME", "Homelab"),
|
||||
AppURL: getEnv("APP_URL", "https://api.digital-home.site"),
|
||||
DatabaseURL: getEnv("DATABASE_URL", "postgres://homelab:homelab@db:5432/homelab?sslmode=disable"),
|
||||
JWTSecret: getEnv("JWT_SECRET", "change-me-in-production"),
|
||||
Port: getEnv("PORT", "8080"),
|
||||
ResendAPIKey: getEnv("RESEND_API_KEY", ""),
|
||||
FromEmail: getEnv("FROM_EMAIL", "noreply@digital-home.site"),
|
||||
FromName: getEnv("FROM_NAME", "Homelab"),
|
||||
AppURL: getEnv("APP_URL", "https://api.digital-home.site"),
|
||||
TelegramBotToken: getEnv("TELEGRAM_BOT_TOKEN", ""),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user