Switched to static config embedded in python code to environment based variables.

This commit is contained in:
edschuy95 2025-07-17 00:04:49 -04:00
parent e7786593e1
commit 0fc9aee963
30 changed files with 5794 additions and 26 deletions

5
.env.template Normal file
View 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")