From f5ab703d8afd8a672eab9f8f500bcfd37315c2e1 Mon Sep 17 00:00:00 2001 From: Valentino Lauciani Date: Wed, 25 Nov 2020 12:50:03 +0100 Subject: [PATCH] Set nginx default.key permission Solved issue: https://github.com/laradock/laradock/issues/2285#issuecomment-616225902 --- nginx/startup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/nginx/startup.sh b/nginx/startup.sh index f8e7b22..0f088ad 100644 --- a/nginx/startup.sh +++ b/nginx/startup.sh @@ -4,6 +4,7 @@ if [ ! -f /etc/nginx/ssl/default.crt ]; then openssl genrsa -out "/etc/nginx/ssl/default.key" 2048 openssl req -new -key "/etc/nginx/ssl/default.key" -out "/etc/nginx/ssl/default.csr" -subj "/CN=default/O=default/C=UK" openssl x509 -req -days 365 -in "/etc/nginx/ssl/default.csr" -signkey "/etc/nginx/ssl/default.key" -out "/etc/nginx/ssl/default.crt" + chmod 644 /etc/nginx/ssl/default.key fi # Start crond in background