-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: expose extra env variables for more flexible infra tuning (#1445)
Expose extra variables for a more flexible infra tuning
- Loading branch information
Showing
2 changed files
with
16 additions
and
6 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 |
---|---|---|
|
@@ -418,11 +418,14 @@ def set_ciso_assistant_url(_, __, event_dict): | |
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend" | ||
DEFAULT_FROM_EMAIL = "[email protected]" | ||
|
||
|
||
## Huey settings | ||
HUEY_FILE_PATH = os.environ.get("HUEY_FILE_PATH", BASE_DIR / "db" / "huey.db") | ||
|
||
HUEY = { | ||
"huey_class": "huey.SqliteHuey", | ||
"name": "ciso_assistant", | ||
"filename": BASE_DIR / "db" / "huey.db", | ||
"filename": HUEY_FILE_PATH, | ||
"results": True, # would be interesting for debug | ||
"immediate": False, # set to False to run in "live" mode regardless of DEBUG, otherwise it will follow | ||
} |
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