mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-06-16 12:45:14 +02:00
Add allowall to docker image
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
This commit is contained in:
parent
5a84dd7d65
commit
0b212819c7
|
@ -21,6 +21,8 @@ The running container can be configured through different environment variables:
|
||||||
- `HASH_KEY`: Secret value used to generate checksums of sessions (32 or 64 bytes).
|
- `HASH_KEY`: Secret value used to generate checksums of sessions (32 or 64 bytes).
|
||||||
- `BLOCK_KEY`: Key for encrypting data in the sessions (16, 24 or 32 bytes).
|
- `BLOCK_KEY`: Key for encrypting data in the sessions (16, 24 or 32 bytes).
|
||||||
- `INTERNAL_SHARED_SECRET_KEY`: Shared secret for connections from internal clients.
|
- `INTERNAL_SHARED_SECRET_KEY`: Shared secret for connections from internal clients.
|
||||||
|
- `BACKENDS_ALLOWALL`: Allow all backends. Extremly insecure - use only for development!
|
||||||
|
- `BACKENDS_ALLOWALL_SECRET`: Secret when `BACKENDS_ALLOWALL` is enabled.
|
||||||
- `BACKENDS`: Space-separated list of backend ids.
|
- `BACKENDS`: Space-separated list of backend ids.
|
||||||
- `BACKEND_<ID>_URL`: Url of backend `ID` (where `ID` is the uppercase backend id).
|
- `BACKEND_<ID>_URL`: Url of backend `ID` (where `ID` is the uppercase backend id).
|
||||||
- `BACKEND_<ID>_SHARED_SECRET`: Shared secret for backend `ID` (where `ID` is the uppercase backend id).
|
- `BACKEND_<ID>_SHARED_SECRET`: Shared secret for backend `ID` (where `ID` is the uppercase backend id).
|
||||||
|
|
|
@ -215,6 +215,14 @@ if [ ! -f "$CONFIG" ]; then
|
||||||
echo >> "$CONFIG"
|
echo >> "$CONFIG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -z "$BACKENDS_ALLOWALL" ]; then
|
||||||
|
sed -i "s|allowall = false|allowall = $BACKENDS_ALLOWALL|" "$CONFIG"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -z "$BACKENDS_ALLOWALL_SECRET" ]; then
|
||||||
|
sed -i "s|#secret = the-shared-secret-for-allowall|secret = $BACKENDS_ALLOWALL_SECRET|" "$CONFIG"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -z "$BACKENDS" ]; then
|
if [ ! -z "$BACKENDS" ]; then
|
||||||
sed -i "s|#backends = .*|backends = $BACKENDS|" "$CONFIG"
|
sed -i "s|#backends = .*|backends = $BACKENDS|" "$CONFIG"
|
||||||
|
|
||||||
|
|
|
@ -89,7 +89,7 @@ allowall = false
|
||||||
# Common shared secret for requests from and to the backend servers if
|
# Common shared secret for requests from and to the backend servers if
|
||||||
# "allowall" is enabled. This must be the same value as configured in the
|
# "allowall" is enabled. This must be the same value as configured in the
|
||||||
# Nextcloud admin ui.
|
# Nextcloud admin ui.
|
||||||
#secret = the-shared-secret
|
#secret = the-shared-secret-for-allowall
|
||||||
|
|
||||||
# Timeout in seconds for requests to the backend.
|
# Timeout in seconds for requests to the backend.
|
||||||
timeout = 10
|
timeout = 10
|
||||||
|
|
Loading…
Reference in a new issue