Nginx: added OpenSSL for local development (#1527)

* feature(nginx): add OpenSSL
This commit is contained in:
Vladyslav Shchepotin
2018-11-13 14:44:51 +02:00
committed by Shao Yu-Lung (Allen)
parent 1dac382827
commit 7219b3543a
9 changed files with 38 additions and 1 deletions

9
nginx/startup.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
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"
fi
nginx