Skip to content

Commit

Permalink
support Redis over TLS (#7)
Browse files Browse the repository at this point in the history
* support Redis over TLS

* set latest tag

* allow connecting to redis from multiple env vars

* logging
  • Loading branch information
pdtfh authored Nov 28, 2023
1 parent a605d54 commit 0214d30
Show file tree
Hide file tree
Showing 6 changed files with 251 additions and 14 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REDIS_URL=redis://localhost
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
Expand Down
218 changes: 209 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ tokio = { version = "1.31.0", features = ["full"] }
serde = { version = "1.0.183", features = ["derive"] }
tower-http = { version = "0.4.3", features = ["cors"] }
uuid = { version = "1.4.1", features = ["v4", "serde"] }
redis = { version = "0.23.0", features = ["tokio-comp", "connection-manager"] }
redis = { version = "0.23.0", features = ["tokio-comp", "connection-manager", "tokio-native-tls-comp"] }
tracing-subscriber = { version = "0.3", default-features = false, features = [
"fmt",
] }
Expand Down
Loading

0 comments on commit 0214d30

Please sign in to comment.