Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ config = "0.15.11"
aws-arn = "0.3.1"

# Redis
redis = { version = "0.31.0", features = ["tokio-comp", "connection-manager"] }
redis = { version = "0.31.0", features = ["connection-manager", "tls-rustls", "tls-rustls-webpki-roots", "tokio-rustls-comp"] }
Comment thread
nischitpra marked this conversation as resolved.

# Dev dependencies
criterion = { version = "0.6", features = ["html_reports", "async_tokio"] }
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ thirdweb:

redis:
url: "redis://localhost:6379"
# For Redis over TLS, use the `rediss://` scheme:
# url: "rediss://localhost:6379"

queue:
webhook_workers: 50
Expand All @@ -166,6 +168,8 @@ export APP__QUEUE__LOCAL_CONCURRENCY=500

# Custom Redis configuration
export APP__REDIS__URL="redis://redis-cluster:6379"
# For Redis over TLS, use the `rediss://` scheme:
# export APP__REDIS__URL="rediss://redis-cluster:6379"

# Debug logging for development
export RUST_LOG="thirdweb_engine=debug,twmq=debug"
Expand Down
6 changes: 6 additions & 0 deletions server/DOCKER.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ The following environment variables must be set when running the container:
```bash
# Redis Configuration
APP__REDIS__URL=redis://localhost:6379
# For Redis over TLS, use the `rediss://` scheme:
# APP__REDIS__URL=rediss://localhost:6379

# Thirdweb Configuration
APP__THIRDWEB__SECRET=your_secret_key_here
Expand Down Expand Up @@ -68,6 +70,8 @@ Create a `.env` file with your configuration:
```bash
# .env file
APP__REDIS__URL=redis://localhost:6379
# For Redis over TLS, use the `rediss://` scheme:
# APP__REDIS__URL=rediss://localhost:6379
APP__THIRDWEB__SECRET=your_secret_key_here
APP__THIRDWEB__CLIENT_ID=your_client_id_here
APP__THIRDWEB__URLS__RPC=https://your-rpc-url.com
Expand Down Expand Up @@ -128,6 +132,8 @@ services:
- "8080:8080"
environment:
- APP__REDIS__URL=redis://redis:6379
# For Redis over TLS, use the `rediss://` scheme:
# - APP__REDIS__URL=rediss://redis:6379
Comment thread
nischitpra marked this conversation as resolved.
- APP__THIRDWEB__SECRET=${APP__THIRDWEB__SECRET}
- APP__THIRDWEB__CLIENT_ID=${APP__THIRDWEB__CLIENT_ID}
- APP__THIRDWEB__URLS__RPC=${APP__THIRDWEB__URLS__RPC}
Expand Down