🔧(backend) add COLLABORATION_SERVER_URL setting

The frontend need to know the collab server url,
so we need to add a new setting to the backend,
in order to expose this value to the frontend.
If the setting is not defined, the frontend current
domain will be used as the base url.
In production this setting do not need to be defined
since we have nginx capturing the ws requests,
but in development we need to define it to target
the collaboration server.
This commit is contained in:
Anthony LC
2024-11-15 11:36:40 +01:00
committed by Anthony LC
parent 52dea8fa2f
commit 016597d5a2
4 changed files with 15 additions and 1 deletions

View File

@@ -45,3 +45,6 @@ OIDC_AUTH_REQUEST_EXTRA_PARAMS={"acr_values": "eidas1"}
AI_BASE_URL=https://openaiendpoint.com
AI_API_KEY=password
AI_MODEL=llama
# Collaboration
COLLABORATION_SERVER_URL=ws://localhost:4444