-
-
Save meyju/197a7bb61c97a845bddfdad04a2d9dc4 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