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"
|
||||
|
|
|
|||
|
|
@ -84,7 +84,8 @@ internalsecret = the-shared-secret-for-internal-clients
|
|||
# For backend type "etcd":
|
||||
# Key prefix of backend entries. All keys below will be watched and assumed to
|
||||
# contain a JSON document with the following entries:
|
||||
# - "url": Url of the Nextcloud instance.
|
||||
# - "urls": List of urls of the Nextcloud instance.
|
||||
# - "url": Url of the Nextcloud instance (deprecated).
|
||||
# - "secret": Shared secret for requests from and to the backend servers.
|
||||
#
|
||||
# Additional optional entries:
|
||||
|
|
@ -93,8 +94,8 @@ internalsecret = the-shared-secret-for-internal-clients
|
|||
# - "sessionlimit": Number of sessions that are allowed to connect.
|
||||
#
|
||||
# Example:
|
||||
# "/signaling/backend/one" -> {"url": "https://nextcloud.domain1.invalid", ...}
|
||||
# "/signaling/backend/two" -> {"url": "https://domain2.invalid/nextcloud", ...}
|
||||
# "/signaling/backend/one" -> {"urls": ["https://nextcloud.domain1.invalid"], ...}
|
||||
# "/signaling/backend/two" -> {"urls": ["https://domain2.invalid/nextcloud"], ...}
|
||||
#backendprefix = /signaling/backend
|
||||
|
||||
# Allow any hostname as backend endpoint. This is extremely insecure and should
|
||||
|
|
@ -122,8 +123,8 @@ connectionsperhost = 8
|
|||
# Backend configurations as defined in the "[backend]" section above. The
|
||||
# section names must match the ids used in "backends" above.
|
||||
#[backend-id]
|
||||
# URL of the Nextcloud instance
|
||||
#url = https://cloud.domain.invalid
|
||||
# Comma-separated list of urls of the Nextcloud instance
|
||||
#urls = https://cloud.domain.invalid
|
||||
|
||||
# Shared secret for requests from and to the backend servers. Leave empty to use
|
||||
# the common shared secret from above.
|
||||
|
|
@ -143,8 +144,8 @@ connectionsperhost = 8
|
|||
#maxscreenbitrate = 2097152
|
||||
|
||||
#[another-backend]
|
||||
# URL of the Nextcloud instance
|
||||
#url = https://cloud.otherdomain.invalid
|
||||
# Comma-separated list of urls of the Nextcloud instance
|
||||
#urls = https://cloud.otherdomain.invalid
|
||||
|
||||
# Shared secret for requests from and to the backend servers. Leave empty to use
|
||||
# the common shared secret from above.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue