feat(backend): add SaluteSpeech settings (auth key, cert path, scope)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -21,6 +21,8 @@ class Settings(BaseSettings):
|
|||||||
"http://localhost:3000",
|
"http://localhost:3000",
|
||||||
"http://localhost:3001",
|
"http://localhost:3001",
|
||||||
"http://localhost:8000",
|
"http://localhost:8000",
|
||||||
|
"http://192.168.1.47:3000",
|
||||||
|
"http://192.168.1.47",
|
||||||
],
|
],
|
||||||
alias="CORS_ALLOWED_ORIGINS",
|
alias="CORS_ALLOWED_ORIGINS",
|
||||||
)
|
)
|
||||||
@@ -94,6 +96,15 @@ class Settings(BaseSettings):
|
|||||||
default="http://localhost:8000", alias="WEBHOOK_BASE_URL"
|
default="http://localhost:8000", alias="WEBHOOK_BASE_URL"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# SaluteSpeech
|
||||||
|
salute_auth_key: str = Field(default="", alias="SALUTE_AUTH_KEY")
|
||||||
|
salute_ca_cert_path: Path | None = Field(
|
||||||
|
default=None, alias="SALUTE_CA_CERT_PATH"
|
||||||
|
)
|
||||||
|
salute_scope: str = Field(
|
||||||
|
default="SALUTE_SPEECH_PERS", alias="SALUTE_SCOPE"
|
||||||
|
)
|
||||||
|
|
||||||
def get_database_url(self) -> str:
|
def get_database_url(self) -> str:
|
||||||
if self.database_url:
|
if self.database_url:
|
||||||
return self.database_url
|
return self.database_url
|
||||||
|
|||||||
Reference in New Issue
Block a user