Skip to content

Commit

Permalink
Add request IDs to static site access logs to prevent nginx warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
GUI committed Jun 30, 2018
1 parent 04e8c9c commit 08b59e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/etc/nginx/router.conf.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ http {

server {
listen {{api_server.host}}:{{api_server.port}} so_keepalive=on;

set $x_api_umbrella_request_id $http_x_api_umbrella_request_id;

location /api-umbrella/v1/health {
Expand Down Expand Up @@ -267,8 +268,8 @@ http {

server {
listen {{static_site.host}}:{{static_site.port}} so_keepalive=on;
server_name _;

set $x_api_umbrella_request_id $http_x_api_umbrella_request_id;
root {{static_site.build_dir}};

# Security headers
Expand Down

0 comments on commit 08b59e7

Please sign in to comment.