https://github.com/opencv/cvat
Raw File
Tip revision: 73199d6b6bb7aca553869921c6ade8fe40409334 authored by Nikita Manovich on 02 October 2023, 17:42:01 UTC
Release v2.7.3
Tip revision: 73199d6
allow_webhooks_receiver.sh
# We want to exclude webhooks_receiver from SSRF protection,
# so that the server can access it.
# --allow-address doesn't allow hostnames, so we have to resolve
# the IP address ourselves.
webhooks_ip_addr="$(getent hosts webhooks | head -1 | awk '{ print $1 }')"
export SMOKESCREEN_OPTS="$SMOKESCREEN_OPTS --allow-address=\"$webhooks_ip_addr\""
back to top