docker: Make proxy timeout configurable.

This commit is contained in:
Joachim Bauch 2025-04-24 08:31:15 +02:00
commit d6ce4adaa6
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02
2 changed files with 4 additions and 0 deletions

View file

@ -48,6 +48,7 @@ The running container can be configured through different environment variables:
- `USE_PROXY`: Set to `1` if proxy servers should be used as WebRTC backends.
- `PROXY_TOKEN_ID`: Id of the token to use when connecting to proxy servers.
- `PROXY_TOKEN_KEY`: Private key for the configured token id.
- `PROXY_TIMEOUT`: Timeout in seconds for requests to the proxy server.
- `PROXY_URLS`: Space-separated list of proxy URLs to connect to.
- `PROXY_DNS_DISCOVERY`: Enable DNS discovery on hostnames of configured static URLs.
- `PROXY_ETCD`: Set to `1` if etcd should be used to configure proxy connections.

View file

@ -119,6 +119,9 @@ if [ ! -f "$CONFIG" ]; then
if [ -n "$PROXY_TOKEN_KEY" ]; then
sed -i "s|#token_key =.*|token_key = $PROXY_TOKEN_KEY|" "$CONFIG"
fi
if [ -n "$PROXY_TIMEOUT" ]; then
sed -i "s|#proxytimeout =.*|proxytimeout = $PROXY_TIMEOUT|" "$CONFIG"
fi
if [ -n "$PROXY_ETCD" ]; then
if [ -z "$HAS_ETCD" ]; then