nginx ssl connection works, it was a typo

+ created some test files in html
This commit is contained in:
hugo gogo
2022-09-01 20:43:00 +02:00
parent b0a0a2fbd6
commit d29e80d743
7 changed files with 131 additions and 24 deletions

View File

@@ -2,6 +2,9 @@ FROM debian:buster
RUN apt update && apt install -y nginx openssl
# for debug
RUN apt install -y procps vim
# create ssl certificate
RUN openssl req -newkey rsa:2048 -nodes -x509 \
-keyout /etc/ssl/private/hulamy.42.fr.key -out /etc/ssl/certs/hulamy.42.fr.crt \
@@ -13,7 +16,7 @@ COPY ./conf/inception_nginx.conf /etc/nginx/conf.d/
# for test
COPY ./conf/index.html /data/www/
COPY ./conf/salade.jpeg /data/images/
COPY ./conf/https/index.html /data/wwws/
CMD [ "nginx", "-g", "daemon off;" ]