forked from images/gitea-image-forge
alt/nginx: write logs to stdout and stderr
This commit is contained in:
parent
5b2ef2aa45
commit
d0a548bb37
@ -6,6 +6,9 @@ MAINTAINER alt-cloud
|
||||
|
||||
RUN cd /etc/nginx/sites-enabled.d && ln -s ../sites-available.d/default.conf .
|
||||
|
||||
RUN ln -sf /dev/stdout /var/log/nginx/access.log
|
||||
RUN ln -sf /dev/stderr /var/log/nginx/error.log
|
||||
|
||||
RUN sed -Ei 's/^([[:space:]]*listen[[:space:]]+)localhost(:80)/\10.0.0.0\2/' \
|
||||
/etc/nginx/sites-available.d/default.conf
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user