Last active
April 19, 2018 20:25
-
-
Save caquino/2b6b92d39740f967a8e2ad634f03cb25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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