Switched to static config embedded in python code to environment based variables.
This commit is contained in:
parent
e7786593e1
commit
0fc9aee963
30 changed files with 5794 additions and 26 deletions
5
.env.template
Normal file
5
.env.template
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
VOIPMS_ENDPOINT = os.getenv("VOIPMS_ENDPOINT", "https://voip.ms/api/v1/server.php")
|
||||
VOIPMS_3CX_ENDPOINT = os.getenv("VOIPMS_3CX_ENDPOINT", "https://voip.ms/api/3cx/msg")
|
||||
YEASTAR_WEBHOOK_URL = os.getenv("YEASTAR_WEBHOOK_URL", "please_set_YEASTAR_WEBHOOK_URL_in_env")
|
||||
YEASTAR_SECRET = os.getenv("YEASTAR_SECRET", "secret_set_in_yeastar_channel_config")
|
||||
ENDPOINT_OBSCURITY = os.getenv("ENDPOINT_OBSCURITY","some_random_string_makes_your_endpoint_harder_to_guess")
|
||||
Loading…
Add table
Add a link
Reference in a new issue