Set nginx default.key permission
Solved issue: https://github.com/laradock/laradock/issues/2285#issuecomment-616225902
This commit is contained in:
parent
3124ad8d76
commit
f5ab703d8a
@ -4,6 +4,7 @@ if [ ! -f /etc/nginx/ssl/default.crt ]; then
|
|||||||
openssl genrsa -out "/etc/nginx/ssl/default.key" 2048
|
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 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"
|
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
|
fi
|
||||||
|
|
||||||
# Start crond in background
|
# Start crond in background
|
||||||
|
Loading…
Reference in New Issue
Block a user