feat: add web push and sadhna tracker
This commit is contained in:
@@ -89,6 +89,14 @@ type Config struct {
|
||||
SoketiHost string
|
||||
SoketiPort int
|
||||
SoketiUseTLS bool
|
||||
|
||||
// Web Push (VAPID). Empty keys disable push delivery (other channels
|
||||
// still run). VAPIDSubject is a mailto: or https: contact URL required
|
||||
// by the spec. The public key is also served to the browser to
|
||||
// subscribe.
|
||||
VAPIDPublicKey string
|
||||
VAPIDPrivateKey string
|
||||
VAPIDSubject string
|
||||
}
|
||||
|
||||
// Load reads configuration from environment variables (with .env fallback).
|
||||
@@ -154,6 +162,10 @@ func Load() (*Config, error) {
|
||||
SoketiHost: getEnv("SOKETI_HOST", "ws.prabhupadasays.org"),
|
||||
SoketiPort: getEnvInt("SOKETI_PORT", 443),
|
||||
SoketiUseTLS: getEnvBool("SOKETI_USE_TLS", true),
|
||||
|
||||
VAPIDPublicKey: getEnv("VAPID_PUBLIC_KEY", ""),
|
||||
VAPIDPrivateKey: getEnv("VAPID_PRIVATE_KEY", ""),
|
||||
VAPIDSubject: getEnv("VAPID_SUBJECT", "mailto:admin@prabhupadasays.org"),
|
||||
}
|
||||
|
||||
if cfg.MongoURI == "" {
|
||||
|
||||
Reference in New Issue
Block a user