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 2020-12-22 21:28:38 -08:00
parent c3834e0e66
commit 9a3833ea49
4 changed files with 927 additions and 730 deletions

View File

@ -4,3 +4,4 @@ DATABASE_PASS=password
DATABASE_USER=freechat_dev DATABASE_USER=freechat_dev
DATABASE_HOST=localhost DATABASE_HOST=localhost
DATABASE_PORT=3306 DATABASE_PORT=3306
REDIS_URL=redis://127.0.0.1:6379

1652
server-api/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -21,11 +21,13 @@ getrandom = "0.1"
bcrypt = "0.8" bcrypt = "0.8"
base64 = "0.12.1" base64 = "0.12.1"
rand = "0.7.3" rand = "0.7.3"
jsonwebtoken = "7.2.0"
clap = "2.32.2" clap = "2.32.2"
serde_json = "1.0" serde_json = "1.0"
serde = { version = "1.0.114", features = [ "derive" ] } serde = { version = "1.0.114", features = [ "derive" ] }
lazy_static = "1.4.0"
# Database library/interface # Database library/interface
db = { path = "db" } db = { path = "db" }

View File

@ -8,9 +8,11 @@ edition = "2018"
[dependencies] [dependencies]
mysql_async = "0.23.1" mysql_async = "0.23.1"
redis = { version = "0.18.0", features = ["tokio-comp"] }
async-trait = "0.1.40" async-trait = "0.1.40"
serde_json = "1.0" serde_json = "1.0"
serde = { version = "1.0.117", features = [ "derive" ] } serde = { version = "1.0.117", features = [ "derive" ] }
chrono = "0.4.0" chrono = "0.4.0"
lazy_static = "1.4.0"