Skip to content

Commit

Permalink
Set nginx default.key permission
Browse files Browse the repository at this point in the history
  • Loading branch information
vlauciani authored Nov 25, 2020
1 parent 3124ad8 commit f5ab703
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nginx/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f5ab703

Please sign in to comment.