diff --git a/frontend/debian/cuttlefish-user.cuttlefish-operator.default b/frontend/debian/cuttlefish-user.cuttlefish-operator.default index e093c8b3c21..0c3d46605e8 100644 --- a/frontend/debian/cuttlefish-user.cuttlefish-operator.default +++ b/frontend/debian/cuttlefish-user.cuttlefish-operator.default @@ -22,3 +22,11 @@ operator_https_port=1443 # else, it uses web pages which is generated during the build # Defaults to "" # operator_webui_url= +# +# Path to an executable that prints an InfraConfig JSON object on stdout, +# used to obtain ICE servers (STUN/TURN) at runtime. +# The operator falls back to the static configuration if the executable is +# missing, fails, or produces output that does not parse. +# Empty means no delegate is used. +# Defaults to "" +# operator_infra_config_delegate= diff --git a/frontend/debian/cuttlefish-user.cuttlefish-operator.init b/frontend/debian/cuttlefish-user.cuttlefish-operator.init index fb756f734a2..d97995bb539 100755 --- a/frontend/debian/cuttlefish-user.cuttlefish-operator.init +++ b/frontend/debian/cuttlefish-user.cuttlefish-operator.init @@ -86,6 +86,9 @@ start() { if [[ -n "${operator_listen_address}" ]]; then args+=(--listen_addr="${operator_listen_address}") fi + if [[ -n "${operator_infra_config_delegate}" ]]; then + args+=(--infra_config_delegate="${operator_infra_config_delegate}") + fi start-stop-daemon --start \ --pidfile "${PIDFILE}" \