mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-17 19:37:02 +00:00
chore: move jwt secrets to .env
This commit is contained in:
@@ -91,6 +91,9 @@ DB_DIALECT=
|
||||
DB_USER=
|
||||
DB_PASS=
|
||||
DB_NAME=
|
||||
|
||||
JWT_SECRET=3123123213123
|
||||
JWT_REFRESH_SECRET=75756756756
|
||||
```
|
||||
|
||||
Install backend dependencies, build app, run migrations and seeds:
|
||||
@@ -205,6 +208,9 @@ DB_DIALECT=
|
||||
DB_USER=
|
||||
DB_PASS=
|
||||
DB_NAME=
|
||||
|
||||
JWT_SECRET=3123123213123
|
||||
JWT_REFRESH_SECRET=75756756756
|
||||
```
|
||||
|
||||
Install puppeteer dependencies:
|
||||
|
||||
@@ -9,3 +9,6 @@ DB_HOST=
|
||||
DB_USER=
|
||||
DB_PASS=
|
||||
DB_NAME=
|
||||
|
||||
JWT_SECRET=3123123213123
|
||||
JWT_REFRESH_SECRET=75756756756
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
export default {
|
||||
secret: "mysecret",
|
||||
secret: process.env.JWT_SECRET || "mysecret",
|
||||
expiresIn: "15m",
|
||||
refreshSecret: "myanothersecret",
|
||||
refreshSecret: process.env.JWT_REFRESH_SECRET || "myanothersecret",
|
||||
refreshExpiresIn: "7d"
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user