mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-06-08 17:02:18 +02:00
parent
c2e93cd92a
commit
f6125dac3f
|
@ -55,6 +55,7 @@ The running container can be configured through different environment variables:
|
|||
- `GEOIP_OVERRIDES`: Optional space-separated list of overrides for GeoIP lookups.
|
||||
- `CONTINENT_OVERRIDES`: Optional space-separated list of overrides for continent mappings.
|
||||
- `STATS_IPS`: Comma-separated list of IP addresses that are allowed to access the stats endpoint.
|
||||
- `TRUSTED_PROXIES`: Comma-separated list of IPs / networks that are trusted proxies.
|
||||
- `GRPC_LISTEN`: IP and port to listen on for GRPC requests.
|
||||
- `GRPC_SERVER_CERTIFICATE`: Certificate to use for the GRPC server.
|
||||
- `GRPC_SERVER_KEY`: Private key to use for the GRPC server.
|
||||
|
@ -102,6 +103,8 @@ The running container can be configured through different environment variables:
|
|||
- `JANUS_URL`: Url to Janus server.
|
||||
- `MAX_STREAM_BITRATE`: Optional maximum bitrate for audio/video streams.
|
||||
- `MAX_SCREEN_BITRATE`: Optional maximum bitrate for screensharing streams.
|
||||
- `STATS_IPS`: Comma-separated list of IP addresses that are allowed to access the stats endpoint.
|
||||
- `TRUSTED_PROXIES`: Comma-separated list of IPs / networks that are trusted proxies.
|
||||
- `ETCD_ENDPOINTS`: Static list of etcd endpoints (if etcd should be used).
|
||||
- `ETCD_DISCOVERY_SRV`: Alternative domain to use for DNS SRV configuration of etcd endpoints (if etcd should be used).
|
||||
- `ETCD_DISCOVERY_SERVICE`: Optional service name for DNS SRV configuration of etcd..
|
||||
|
|
|
@ -109,6 +109,10 @@ if [ ! -f "$CONFIG" ]; then
|
|||
if [ -n "$STATS_IPS" ]; then
|
||||
sed -i "s|#allowed_ips =.*|allowed_ips = $STATS_IPS|" "$CONFIG"
|
||||
fi
|
||||
|
||||
if [ -n "$TRUSTED_PROXIES" ]; then
|
||||
sed -i "s|#trustedproxies =.*|trustedproxies = $TRUSTED_PROXIES|" "$CONFIG"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Starting signaling proxy with $CONFIG ..."
|
||||
|
|
|
@ -157,6 +157,10 @@ if [ ! -f "$CONFIG" ]; then
|
|||
sed -i "s|#allowed_ips =.*|allowed_ips = $STATS_IPS|" "$CONFIG"
|
||||
fi
|
||||
|
||||
if [ -n "$TRUSTED_PROXIES" ]; then
|
||||
sed -i "s|#trustedproxies =.*|trustedproxies = $TRUSTED_PROXIES|" "$CONFIG"
|
||||
fi
|
||||
|
||||
if [ -n "$GRPC_LISTEN" ]; then
|
||||
sed -i "s|#listen = 0.0.0.0:9090|listen = $GRPC_LISTEN|" "$CONFIG"
|
||||
|
||||
|
|
Loading…
Reference in a new issue