Skip to content

Instantly share code, notes, and snippets.

@caquino
Last active April 19, 2018 20:25
Show Gist options
  • Save caquino/2b6b92d39740f967a8e2ad634f03cb25 to your computer and use it in GitHub Desktop.
Save caquino/2b6b92d39740f967a8e2ad634f03cb25 to your computer and use it in GitHub Desktop.
map $http_x_request_id $uuid {
default "${request_id}";
~* "${http_x_request_id}";
}
server {
listen 80;
server_name _;
proxy_set_header X-Request-ID $uuid;
add_header X-Request-ID $uuid;
location / {
proxy_pass http://backend.local;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment