LemonGateway.Sms.Config (lemon_gateway v0.1.0)

View Source

Configuration reader for SMS webhook settings.

Reads values from the encrypted secrets store (preferred) or environment variables (e.g. LEMON_SMS_WEBHOOK_PORT, TWILIO_AUTH_TOKEN) with fallback to the application :sms config map.

Provides accessors for webhook port, bind IP, auth token, inbox number, and TTL.

Summary

Functions

auth_token()

inbox_number()

inbox_ttl_ms()

validate_webhook?()

webhook_enabled?()

webhook_ip()

Returns the bind ip option for Bandit.

Accepts:

  • "127.0.0.1" / "localhost" => :loopback
  • "0.0.0.0" / "any" => :any
  • explicit IPv4/IPv6 tuple strings => parsed tuple

webhook_port()

webhook_url_override()