sample .env now uses redis

Also I'm moving the redis deps to db-lib
Lazy static now added for the sake of holding the only static ref we need/want
the hmac secret
This commit is contained in:
shockrah committed 2020-12-22 21:28:38 -08:00
1 parent c3834e0e66
commit 9a3833ea49
4 files changed
+927 -730

No files matched your search

+1
View File
@@ -4,3 +4,4 @@ DATABASE_PASS=password
DATABASE_USER=freechat_dev
DATABASE_HOST=localhost
DATABASE_PORT=3306
REDIS_URL=redis://127.0.0.1:6379
+922 -730
View File
File diff suppressed because it is too large. Load diff
+2
View File
@@ -21,11 +21,13 @@ getrandom = "0.1"
bcrypt = "0.8"
base64 = "0.12.1"
rand = "0.7.3"
jsonwebtoken = "7.2.0"
clap = "2.32.2"
serde_json = "1.0"
serde = { version = "1.0.114", features = [ "derive" ] }
lazy_static = "1.4.0"
# Database library/interface
db = { path = "db" }
+2
View File
@@ -8,9 +8,11 @@ edition = "2018"
[dependencies]
mysql_async = "0.23.1"
redis = { version = "0.18.0", features = ["tokio-comp"] }
async-trait = "0.1.40"
serde_json = "1.0"
serde = { version = "1.0.117", features = [ "derive" ] }
chrono = "0.4.0"
lazy_static = "1.4.0"