-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds environmental variable control of the events emitted by Topic. By setting the variable `DISABLE_EVENTS` to false, no Redis subscriptions will be made at runtime. In fact, the code is read as dead code and returns immediately on entry into the function. Closes #948.
- Loading branch information
Showing
7 changed files
with
127 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,35 @@ | ||
# Server Config | ||
PORT=8080 | ||
HTTPS=1 | ||
|
||
# database configuration | ||
DB_HOST='localhost' | ||
DB_USER='YOUR_USERNAME' | ||
DB_USER='bhima' | ||
DB_PASS='YOUR_PASSWORD' | ||
DB_NAME='YOUR_DATABASE' | ||
DB_NAME='bhima' | ||
|
||
# session variables | ||
SESS_SECRET='YOUR_SECRET' | ||
SESS_SECRET='X0pEn Bl0wF1SH' | ||
SESS_RESAVE=0 | ||
SESS_SAVE_UNINITIALIZED=0 | ||
SESS_REAP_INTERVAL=-1 | ||
SESS_UNSET='destroy' | ||
|
||
# logger configuration | ||
LOG_LEVEL='debug' | ||
# log level | ||
LOG_LEVEL='verbose' | ||
LOG_FILE='access.log' | ||
|
||
# uploads | ||
UPLOAD_FOLDER='client/upload' | ||
UPLOAD_DIR='client/upload' | ||
|
||
# SSL/TLS config | ||
TLS_KEY='server/config/keys/server.key' | ||
TLS_CERT='server/config/keys/server.crt' | ||
# for sentry.io error reporting | ||
SENTRY_DSN='' | ||
SENTRY_NAME='' | ||
SENTRY_ENVIRONMENT='' | ||
|
||
# used for broadcasting email reports | ||
SYSTEM_EMAIL_ADDRESS='' | ||
|
||
# used to log in to the mailgun service | ||
MAILGUN_DOMAIN='' | ||
MAILGUN_API_KEY='' | ||
|
||
# control Redis Pub/Sub | ||
ENABLE_EVENTS=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.