nginx default config file is fully commented with explanations

This commit is contained in:
hugo gogo
2022-08-31 13:58:34 +02:00
parent f03422ab4f
commit 2967738e7a
7 changed files with 79 additions and 46 deletions

View File

@@ -4,8 +4,14 @@ RUN apt update && apt install -y nginx
COPY ./conf/nginx.conf /etc/nginx/
COPY ./conf/inception_nginx.conf /etc/nginx/conf.d/
# for test
COPY ./conf/index.html /data/www/
COPY ./conf/salade.jpeg /data/images/
CMD [ "nginx", "-g", "daemon off;" ]
# -g 'daemon off' :
# daemon off, to avoid the main process of nginx to quit after creating its childs, and therefore make docker exit
# https://stackoverflow.com/questions/18861300/how-to-run-nginx-within-a-docker-container-without-halting