Skip to content

Commit

Permalink
Added section-io-id to nginx log output (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksantamaria authored Aug 20, 2024
1 parent 38d35e1 commit 472648c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions images/nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ COPY content /etc/nginx/conf.d/drupal/content

# Add server append directives.
COPY append/server_append-healthz.conf /etc/nginx/conf.d/drupal/server_append-healthz.conf
COPY append/http-log-format.conf /etc/nginx/conf.d/http-log-format.conf

RUN fix-permissions /etc/nginx \
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
Expand Down
5 changes: 5 additions & 0 deletions images/nginx/append/http-log-format.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
log_format sdp '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" '
'"$http_x_section_io_id"';
access_log /dev/stdout sdp;

0 comments on commit 472648c

Please sign in to comment.