Skip to content

Commit 2ed4ea5

Browse files
committed
redis tls support
1 parent 196bf34 commit 2ed4ea5

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ config = "0.15.11"
9898
aws-arn = "0.3.1"
9999

100100
# Redis
101-
redis = { version = "0.31.0", features = ["tokio-comp", "connection-manager"] }
101+
redis = { version = "0.31.0", features = ["connection-manager", "tls-rustls", "tls-rustls-webpki-roots", "tokio-rustls-comp"] }
102102

103103
# Dev dependencies
104104
criterion = { version = "0.6", features = ["html_reports", "async_tokio"] }

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ thirdweb:
147147

148148
redis:
149149
url: "redis://localhost:6379"
150+
# For Redis over TLS, use the `rediss://` scheme:
151+
# url: "rediss://localhost:6379"
150152

151153
queue:
152154
webhook_workers: 50
@@ -166,6 +168,8 @@ export APP__QUEUE__LOCAL_CONCURRENCY=500
166168

167169
# Custom Redis configuration
168170
export APP__REDIS__URL="redis://redis-cluster:6379"
171+
# For Redis over TLS, use the `rediss://` scheme:
172+
# export APP__REDIS__URL="rediss://redis-cluster:6379"
169173

170174
# Debug logging for development
171175
export RUST_LOG="thirdweb_engine=debug,twmq=debug"

server/DOCKER.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ The following environment variables must be set when running the container:
2525
```bash
2626
# Redis Configuration
2727
APP__REDIS__URL=redis://localhost:6379
28+
# For Redis over TLS, use the `rediss://` scheme:
29+
# APP__REDIS__URL=rediss://localhost:6379
2830

2931
# Thirdweb Configuration
3032
APP__THIRDWEB__SECRET=your_secret_key_here
@@ -68,6 +70,8 @@ Create a `.env` file with your configuration:
6870
```bash
6971
# .env file
7072
APP__REDIS__URL=redis://localhost:6379
73+
# For Redis over TLS, use the `rediss://` scheme:
74+
# APP__REDIS__URL=rediss://localhost:6379
7175
APP__THIRDWEB__SECRET=your_secret_key_here
7276
APP__THIRDWEB__CLIENT_ID=your_client_id_here
7377
APP__THIRDWEB__URLS__RPC=https://your-rpc-url.com
@@ -128,6 +132,8 @@ services:
128132
- "8080:8080"
129133
environment:
130134
- APP__REDIS__URL=redis://redis:6379
135+
# For Redis over TLS, use the `rediss://` scheme:
136+
# - APP__REDIS__URL=rediss://redis:6379
131137
- APP__THIRDWEB__SECRET=${APP__THIRDWEB__SECRET}
132138
- APP__THIRDWEB__CLIENT_ID=${APP__THIRDWEB__CLIENT_ID}
133139
- APP__THIRDWEB__URLS__RPC=${APP__THIRDWEB__URLS__RPC}

0 commit comments

Comments
 (0)