-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.env
More file actions
38 lines (34 loc) · 1.9 KB
/
Copy pathsample.env
File metadata and controls
38 lines (34 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copy this file to `.env` and update values.
# Then run `source .env`
# Note: `export` is required such that `source .env` works for Go
# --- Required ---
# Port the HTTP server listens on.
export PORT="8080"
# Twilio Account SID — found in the Twilio Console under Account Info.
export TWILIO_ACCOUNT_SID="ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# Twilio API Key SID and Secret — create a key pair in the Twilio Console
# under Account > API Keys. Used to sign Video and Sync access tokens.
export TWILIO_API_KEY="SKxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
export TWILIO_API_SECRET="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# SID of a Twilio Verify Service used for OTP authentication.
# Create one in the Twilio Console under Verify > Services.
export TWILIO_VERIFY_SERVICE_SID="VAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# Secret used to sign JWT session tokens. Must be at least 32 characters.
export JWT_SECRET="your-secret-key-min-32-chars-long"
# --- Optional: Voice calling and webhook validation ---
# Required for PSTN dial-out and webhook signature verification.
# Find TWILIO_AUTH_TOKEN in the Twilio Console under Account Info.
export TWILIO_AUTH_TOKEN="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# A purchased Twilio phone number used as the caller ID for outbound calls.
export TWILIO_PHONE_NUMBER="+15550000000"
# Public base URL where Twilio can reach this server's webhook endpoints.
# Use a tunnel like ngrok in development: https://abc.ngrok.io
export BASE_URL="https://your-domain.example.com"
# --- Optional: Conversational Intelligence ---
# SID of a pre-configured Twilio Intelligence Service.
# Create one in the Twilio Console under Voice Intelligence.
export TWILIO_INTELLIGENCE_SERVICE_SID="GAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# --- Optional: Twilio Sync ---
# SID of a Twilio Sync Service used to track post-call pipeline state.
# Create one in the Twilio Console under Sync.
export TWILIO_SYNC_SERVICE_SID="ISxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"