From 08b59e7a3da587670850da0cd75f2a5cc55a3360 Mon Sep 17 00:00:00 2001 From: Nick Muerdter Date: Sat, 30 Jun 2018 12:29:12 -0600 Subject: [PATCH] Add request IDs to static site access logs to prevent nginx warnings. --- templates/etc/nginx/router.conf.mustache | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/etc/nginx/router.conf.mustache b/templates/etc/nginx/router.conf.mustache index ab342ecfc..62a80e59b 100644 --- a/templates/etc/nginx/router.conf.mustache +++ b/templates/etc/nginx/router.conf.mustache @@ -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 { @@ -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