-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: renomeação do arquivio + adição da env 'INTEGRATION_TOKEN'
- Loading branch information
davi.s.rafacho
committed
Aug 29, 2024
1 parent
3d844a1
commit 5587050
Showing
2 changed files
with
29 additions
and
71 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import os | ||
|
||
from typing import Literal | ||
|
||
EnviromentVar = Literal[ | ||
"DJANGO_SECRET_KEY", | ||
"DJANGO_DEBUG", | ||
"DJANGO_MODE", | ||
"DJANGO_EXECUTION_MODE", | ||
"DATABASE_NAME", | ||
"DATABASE_USER", | ||
"DATABASE_PASSWORD", | ||
"DATABASE_HOST", | ||
"DATABASE_PORT", | ||
"EMAIL_PASSWORD", | ||
"RABBITMQ_HOST", | ||
"RABBITMQ_USER", | ||
"RABBITMQ_PSSWD", | ||
"RABBITMQ_PORT", | ||
"REDIS_HOST", | ||
"REDIS_PORT", | ||
"INTEGRATION_TOKEN", | ||
] | ||
|
||
|
||
environ_keys = EnviromentVars | ||
|
||
def get_environ_var(key: EnviromentVar): | ||
return os.environ.get(key) |
This file was deleted.
Oops, something went wrong.