Skip to content

Instantly share code, notes, and snippets.

@meyju
Forked from caquino/nginx.conf
Created April 19, 2018 20:25
Show Gist options
  • Save meyju/197a7bb61c97a845bddfdad04a2d9dc4 to your computer and use it in GitHub Desktop.
Save meyju/197a7bb61c97a845bddfdad04a2d9dc4 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