Expand description
ยงtiny_twilio_stripe
tiny_twilio_stripe is an extensible Actix-Web backend for generating Twilio Video tokens,
and optionally initiating Stripe Checkout sessions.
ยงโ Features
- ๐ฅ Generate secure Twilio JWT tokens for video rooms
- ๐ฐ Optional Stripe Checkout endpoint
- ๐ Rate limiting with
actix-governor - ๐งช Environment file support (
.env,.env.production, etc.)
ยง๐ง Configuration
Start the app like this:
cargo run -- .env.productionยงRequired .env values (Twilio)
TWILIO_ACCOUNT_SIDTWILIO_API_KEY_SIDTWILIO_API_KEY_SECRETTOKEN_EXPIRY=3600(optional, default: 3600s)
ยงStripe Settings (only if --features stripe is enabled)
STRIPE_SECRET_KEYSTRIPE_SUCCESS_URL=https://your.site/success?room={room}&identity={identity}STRIPE_CANCEL_URL=https://your.site/cancelSTRIPE_CURRENCY=eurSTRIPE_UNIT_AMOUNT=1000STRIPE_PRODUCT_NAME=Private Video Call
ยงRate Limiting
GOVERNOR_BURST=5GOVERNOR_PER_SECOND=2
ยงโจ Feature Flags
stripe: Enables the/api/create-checkout-sessionendpoint.
ยง๐ Modules
ยงStripe (conditionally included)
stripeโ Stripe Checkout handler (only with--features stripe)
ยง๐ License
MIT License ยฉ Holger Trahe