Custom SSL Nginx Alpine

This commit is contained in:
Siroco 2021-03-17 01:12:34 +01:00
parent a98cad6d10
commit 3ca7507d17

3
nginx/Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM nginx:alpine
RUN apk add openssl
RUN openssl req -x509 -nodes -days 365 -subj "/C=CA/ST=QC/O=Company, Inc./CN=mydomain.com" -addext "subjectAltName=DNS:mydomain.com" -newkey rsa:2048 -keyout /etc/ssl/private/nginx.key -out /etc/ssl/certs/nginx.crt