make code configurable
This commit is contained in:
@@ -2,3 +2,4 @@ node_modules
|
|||||||
sqlite.db
|
sqlite.db
|
||||||
.DS_Store
|
.DS_Store
|
||||||
dist
|
dist
|
||||||
|
.env
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@ node_modules
|
|||||||
sqlite.db
|
sqlite.db
|
||||||
.DS_Store
|
.DS_Store
|
||||||
dist
|
dist
|
||||||
|
.env
|
||||||
|
|||||||
@@ -8,3 +8,5 @@ services:
|
|||||||
- 3001:3001
|
- 3001:3001
|
||||||
volumes:
|
volumes:
|
||||||
- ./sqlite.db:/app/sqlite.db
|
- ./sqlite.db:/app/sqlite.db
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
export const Config = {
|
export const Config = {
|
||||||
jwt_secret:
|
jwt_secret:
|
||||||
|
process.env.JWT_SECRET ||
|
||||||
"T4kE6/tIqCVEZYg9lwsqeJjYfOoXTXSXDEMyParsJjj57CjSdkrfPOLWP74/9lJpcBA=",
|
"T4kE6/tIqCVEZYg9lwsqeJjYfOoXTXSXDEMyParsJjj57CjSdkrfPOLWP74/9lJpcBA=",
|
||||||
token_duration: "365d",
|
token_duration: process.env.TOKEN_DURATION || "365d",
|
||||||
api_url: "http://localhost:3000",
|
api_url: process.env.API_URL || "http://localhost:3000",
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user