Set YT_POT_BGUTIL_BASE_URL for the user

This commit is contained in:
tcely
2025-05-16 23:59:13 -04:00
committed by GitHub
parent f7d3367a9f
commit 14877a8c7d

View File

@@ -2,4 +2,14 @@
cd /
https="${TUBESYNC_POT_HTTPS:+https}"
ip_address="${TUBESYNC_POT_IPADDR}"
port="${TUBESYNC_POT_PORT:+:}${TUBESYNC_POT_PORT}"
if [ -n "${ip_address}" ]
then
YT_POT_BGUTIL_BASE_URL="${https:-http}://${ip_address}${port}"
export YT_POT_BGUTIL_BASE_URL
fi
exec /usr/bin/openresty -c /etc/nginx/nginx.conf -e stderr