Fixed small nginx mistakes

pull/3/head
Jef Roosens 2021-01-09 15:48:30 +01:00
parent 38658871e5
commit 7965403624
2 changed files with 6 additions and 1 deletions

View File

@ -9,6 +9,9 @@ RUN mkdir /var/lib/certbot
COPY renew /etc/periodic/weekly/renew COPY renew /etc/periodic/weekly/renew
RUN chmod +x /etc/periodic/weekly/renew RUN chmod +x /etc/periodic/weekly/renew
# Default.conf file is annoying
RUN rm -rf /etc/nginx/conf.d/*
RUN /usr/sbin/crond -f -d 8 & RUN /usr/sbin/crond -f -d 8 &
ENTRYPOINT [ "./entrypoint.sh" ] ENTRYPOINT [ "./entrypoint.sh" ]

View File

@ -1,4 +1,6 @@
#!/usr/bin/env sh #!/usr/bin/env sh
certbot certonly --standalone -d "$MAIN_DOMAIN,$DOMAINS" --email "$EMAIL" -n --agree-tos --expand certbot certonly --standalone -d "$MAIN_DOMAIN,$DOMAINS" --email "$EMAIL" -n --agree-tos --expand
/usr/sbin/nginx -g "daemon off;"
# The original script handles the template subsitution
exec /docker-entrypoint.sh nginx -g "daemon off;"