feat(inception imporing stuff (come back on the subject)
This commit is contained in:
parent
b20e81b0fe
commit
778e1a9056
6 changed files with 64 additions and 14 deletions
|
|
@ -12,8 +12,6 @@ RUN chmod +x /usr/bin/generate_ssl_certificate
|
|||
|
||||
RUN /usr/bin/generate_ssl_certificate
|
||||
|
||||
USER nginx
|
||||
|
||||
EXPOSE 443
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ END = \033[0m
|
|||
|
||||
if [ ! -f "$CERT_DIR/nginx.key" ]; then
|
||||
@printf '$GREYGenerating the ssl$GREEN Certificate$END\n';
|
||||
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt -subj "/C=FR/ST=Paris/L=42/O=Students/OU=Inception/CN=rparodi.42.fr"
|
||||
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt -subj "/C=FR/ST=Paris/L=42/O=Students/OU=Inception/CN=$DOMAIN"
|
||||
else
|
||||
@printf '$GREYGenerating the ssl certificate$RED already exist$END\n';
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue