Skip to content

Commit 8450d92

Browse files
committed
📦 new: add environment variables for railway
1 parent ffbf58b commit 8450d92

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

‎.env.railway

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
PLATFORM_REDIS_URL="${{"Redis (Platform)".REDIS_URL}}" # Auto-configured Redis for bot data storage
2+
POSTGRES_PASSWORD="${{"Postgres (Platform)".POSTGRES_PASSWORD}}" # Auto-configured database password
3+
POSTGRES_USER="${{"Postgres (Platform)".POSTGRES_USER}}" # Auto-configured database username
4+
POSTGRES_URL="${{"Postgres (Platform)".DATABASE_URL}}" # Auto-configured PostgreSQL connection URL
5+
NODE_ENV="production" # Environment mode (keep as production for Railway)
6+
WEBHOOK_POLL_INTERVAL="1000" # How often to check for agent replies (milliseconds)
7+
DATABASE_SSL_VALIDATE="true" # Enable secure database connections (recommended)
8+
TELEGRAM_BOT_TOKEN="" # Get from @BotFather on Telegram - REQUIRED
9+
UNTHREAD_API_KEY="" # Get from Unthread dashboard API settings - REQUIRED
10+
UNTHREAD_SLACK_CHANNEL_ID="" # Target Slack channel ID from Unthread - REQUIRED
11+
UNTHREAD_WEBHOOK_SECRET="" # Webhook secret from Unthread dashboard - REQUIRED
12+
WEBHOOK_REDIS_URL="" # Redis URL for webhook processing (optional for basic bot)
13+
COMPANY_NAME="" # Your company name (optional - used in ticket formatting)

‎.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
# =============================================================================
44

55
# ======= Environment & Configuration =======
6-
# Ignore all .env files except the example template
6+
# Ignore all .env files except templates
77
.env*
88
!.env.example
9+
!.env.railway
910

1011
# ======= Build Output & Dependencies =======
1112
# Node.js

‎src/config/env.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* - TELEGRAM_BOT_TOKEN: Telegram Bot API authentication token
99
* - UNTHREAD_API_KEY: Unthread platform API key for ticket creation
1010
* - UNTHREAD_SLACK_CHANNEL_ID: Target Slack channel for ticket routing
11-
* - UNTHREAD_WEBHOOK_SECRET: Secret for webhook signature verification
11+
* - UNTHREAD_WEBHOOK_SECRET: Secret for webhook signature verification (required for full integration)
1212
* - PLATFORM_REDIS_URL: Redis connection for bot state management
1313
* - WEBHOOK_REDIS_URL: Redis connection for webhook event processing
1414
* - POSTGRES_URL: PostgreSQL database connection for persistent storage

0 commit comments

Comments
 (0)