mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2026-03-14 14:35:44 +01:00
Update default configuration and Docker scripts for backend urls.
This commit is contained in:
parent
8375b985e8
commit
ddad70b4c5
3 changed files with 18 additions and 10 deletions
|
|
@ -30,7 +30,8 @@ The running container can be configured through different environment variables:
|
|||
- `BACKENDS`: Space-separated list of backend ids.
|
||||
- `BACKENDS_TIMEOUT`: Timeout in seconds for requests to backends.
|
||||
- `CONNECTIONS_PER_HOST`: Maximum number of concurrent backend connections per host.
|
||||
- `BACKEND_<ID>_URL`: Url of backend `ID` (where `ID` is the uppercase backend id).
|
||||
- `BACKEND_<ID>_URLS`: Comma-separated list of urls of backend `ID` (where `ID` is the uppercase backend id).
|
||||
- `BACKEND_<ID>_URL`: Url of backend `ID` (where `ID` is the uppercase backend id, deprecated).
|
||||
- `BACKEND_<ID>_SHARED_SECRET`: Shared secret for backend `ID` (where `ID` is the uppercase backend id).
|
||||
- `BACKEND_<ID>_SESSION_LIMIT`: Optional session limit for backend `ID` (where `ID` is the uppercase backend id).
|
||||
- `BACKEND_<ID>_MAX_STREAM_BITRATE`: Optional maximum bitrate for audio/video streams in backend `ID` (where `ID` is the uppercase backend id).
|
||||
|
|
|
|||
|
|
@ -273,9 +273,15 @@ if [ ! -f "$CONFIG" ]; then
|
|||
for backend in $BACKENDS; do
|
||||
echo "[$backend]" >> "$CONFIG"
|
||||
|
||||
declare var="BACKEND_${backend^^}_URL"
|
||||
declare var="BACKEND_${backend^^}_URLS"
|
||||
if [ -n "${!var}" ]; then
|
||||
echo "url = ${!var}" >> "$CONFIG"
|
||||
echo "urls = ${!var}" >> "$CONFIG"
|
||||
else
|
||||
declare var_compat="BACKEND_${backend^^}_URL"
|
||||
if [ -n "${!var_compat}" ]; then
|
||||
echo "Variable $var_compat is deprecated, use $var instead."
|
||||
echo "urls = ${!var_compat}" >> "$CONFIG"
|
||||
fi
|
||||
fi
|
||||
|
||||
declare var="BACKEND_${backend^^}_SHARED_SECRET"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue