Skip to content

Commit

Permalink
add union id to reponse header
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangBohan committed Jun 8, 2018
1 parent e0f8805 commit 29ca35f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
FROM openresty/openresty:jessie
RUN luarocks install luajson
RUN luarocks install uuid
2 changes: 2 additions & 0 deletions nginx.conf.d/main.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ server {
}

location / {
proxy_set_header X-Request-Id $request_id;
add_header X-Request-Id $request_id;
proxy_pass http://127.0.0.1:8081/;
log_by_lua_file lua/request_logger.lua;
}
Expand Down

0 comments on commit 29ca35f

Please sign in to comment.