mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-04-18 14:38:52 +02:00
Configure nginx to log to stdout and stderr
This commit is contained in:
parent
1f4aac8dc2
commit
3751e46eed
@ -46,8 +46,6 @@ RUN mkdir /run/php && \
|
|||||||
EXPOSE 8000/tcp
|
EXPOSE 8000/tcp
|
||||||
RUN touch /run/nginx.pid && \
|
RUN touch /run/nginx.pid && \
|
||||||
chown www-data /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
|
COPY --chown=www-data docker/nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|
||||||
# Create end user directory
|
# Create end user directory
|
||||||
|
@ -3,6 +3,9 @@ events {}
|
|||||||
http {
|
http {
|
||||||
include mime.types;
|
include mime.types;
|
||||||
|
|
||||||
|
access_log /dev/stdout;
|
||||||
|
error_log /dev/stderr;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 8000;
|
listen 8000;
|
||||||
server_name 2fAuth;
|
server_name 2fAuth;
|
||||||
|
Loading…
Reference in New Issue
Block a user