Configure nginx to log to stdout and stderr

This commit is contained in:
Quentin McGaw (desktop) 2021-08-02 10:37:03 -04:00
parent 1f4aac8dc2
commit 3751e46eed
2 changed files with 3 additions and 2 deletions

View File

@ -46,8 +46,6 @@ RUN mkdir /run/php && \
EXPOSE 8000/tcp
RUN touch /run/nginx.pid && \
chown www-data /run/nginx.pid
RUN ln -sf /dev/stdout /var/log/nginx/access.log && \
ln -sf /dev/stderr /var/log/nginx/error.log
COPY --chown=www-data docker/nginx.conf /etc/nginx/nginx.conf
# Create end user directory

View File

@ -3,6 +3,9 @@ events {}
http {
include mime.types;
access_log /dev/stdout;
error_log /dev/stderr;
server {
listen 8000;
server_name 2fAuth;