Merge "Fine tune nginx config"

This commit is contained in:
Zuul 2021-10-20 18:07:26 +00:00 committed by Gerrit Code Review
commit d337a5909c
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,6 @@ COPY stx/toCOPY/aptly/aptly.conf /etc/aptly.conf
COPY stx/toCOPY/aptly/supervisord.aptly.conf /etc/supervisor/conf.d/aptly.conf
# Configure Nginx
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
COPY stx/toCOPY/aptly/nginx.conf.template /etc/nginx/nginx.conf.template
COPY stx/toCOPY/aptly/supervisord.nginx.conf /etc/supervisor/conf.d/nginx.conf

View File

@ -1,4 +1,5 @@
[program:nginx]
command=/usr/sbin/nginx
# "daemon off" should be used in Docker or under Supervisord
command=/usr/sbin/nginx -g "daemon off;"
redirect_stderr=true
stdout_logfile_maxbytes=1MB