From 62de96c500d72113b98898b11dce1537737ea9de Mon Sep 17 00:00:00 2001 From: mihalin Date: Thu, 16 Sep 2021 00:33:36 +0300 Subject: [PATCH] minor changes, auto-certificate --- docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 2a43d90..efb3d88 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -5,7 +5,7 @@ if [ ! -z "${CUSTOM_CERT}" ]; then echo "Use custom certificate" if [ ! -f /cert/private.key ]; then echo "Generate new certificate" - openssl req -newkey rsa:2048 -sha256 -nodes -keyout /cert/private.key -x509 -days 1000 -out /cert/public.pem -subj "/C=US/ST=Berlin/L=Berlin/O=my_org/CN=my_cn" + openssl req -newkey rsa:2048 -sha256 -nodes -keyout /cert/private.key -x509 -days 1000 -out /cert/public.pem -subj "/C=US/ST=Berlin/L=Berlin/O=my_org/CN=${WEBHOOK_HOST}" fi fi