We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec1e2c5 commit f82ea00Copy full SHA for f82ea00
common/docker-entrypoint.d/22-enable_js_fetch_trusted_certificate.sh
@@ -17,6 +17,11 @@
17
set -e
18
19
if [ -f /etc/nginx/conf.d/gateway/js_fetch_trusted_certificate.conf ] && [ -n "${JS_TRUSTED_CERT_PATH+x}" ]; then
20
+ if [ ! -f "${JS_TRUSTED_CERT_PATH}" ]; then
21
+ >&2 echo "JS_TRUSTED_CERT_PATH environment variable error: no file found at the path: ${JS_TRUSTED_CERT_PATH}"
22
+ exit 1
23
+ fi
24
+
25
echo "js_fetch_trusted_certificate ${JS_TRUSTED_CERT_PATH};" >> /etc/nginx/conf.d/gateway/js_fetch_trusted_certificate.conf
26
echo "Enabling js_fetch_trusted_certificate ${JS_TRUSTED_CERT_PATH}"
27
fi
0 commit comments