Skip to content

Commit 9e93f23

Browse files
committed
Configurable log_format
1 parent 8aff35c commit 9e93f23

File tree

3 files changed

+2
-0
lines changed

3 files changed

+2
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ RUN addgroup -S nginx \
9494
&& rm -rf /tmp/* /root/.gnupg
9595

9696
COPY nginx.conf /etc/nginx/nginx.conf
97+
COPY log_format /etc/nginx/conf.d/log_format
9798
COPY default.conf /etc/nginx/sites-enabled/default.conf
9899

99100
EXPOSE 80 443

log_format

Whitespace-only changes.

nginx.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ http {
2222
include /etc/nginx/mime.types;
2323
default_type application/octet-stream;
2424

25+
include /etc/nginx/conf.d/log_format;
2526
access_log /var/log/nginx/access.log combined;
2627
error_log /var/log/nginx/error.log crit;
2728

0 commit comments

Comments
 (0)