Skip to content

Commit

Permalink
updated environment variables template
Browse files Browse the repository at this point in the history
  • Loading branch information
Prakhar896 committed Aug 13, 2024
1 parent 74472fa commit 66c85eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ConfiguringSystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ FILEMANAGER_ENABLED=
LOGGING_ENABLED=
API_KEY=
JWT_KEY=
SUPERUSER_KEY=
SUPERUSER_SENSITIVE_ACTIONS_ENABLED=
WS_PORT= # Usually 8080
ANALYTICS_ENABLED=
ANALYTICS_CDN_IGNORE=
GMAPS_API_KEY=
```

## Database Configuration
Expand Down
2 changes: 1 addition & 1 deletion services/BootCheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require('dotenv').config()
*/
class BootCheck {
static check() {
let requiredVariables = ["SERVER_PORT", "DB_MODE", "EMAILING_ENABLED", "JWT_KEY", "SUPERUSER_KEY", "WS_PORT", "FILEMANAGER_ENABLED", "FIRESTORAGE_ENABLED", "API_KEY"]
let requiredVariables = ["SERVER_PORT", "DB_MODE", "EMAILING_ENABLED", "JWT_KEY", "SUPERUSER_KEY", "WS_PORT", "GMAPS_API_KEY", "FILEMANAGER_ENABLED", "FIRESTORAGE_ENABLED", "API_KEY"]
for (let variable of requiredVariables) {
if (process.env[variable] === undefined) {
throw new Error(`Environment variable ${variable} is not set.`)
Expand Down

0 comments on commit 66c85eb

Please sign in to comment.