Skip to content

Commit

Permalink
Merge pull request #15 from Intellection/add_x_server_proxy_time_resp…
Browse files Browse the repository at this point in the history
…onse_header

[SRE-3200] Expose $request_time as X-Server-Proxy-Time response header
  • Loading branch information
itskingori authored Oct 13, 2023
2 parents 35cd8ab + 1ad7410 commit 3bde705
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.25.2-1

* Expose `$request_time` as `X-Server-Proxy-Time` response header.

## 1.25.2

* Upgrade to Nginx 1.25.2.
Expand Down
1 change: 1 addition & 0 deletions config/http.conf
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ http {
proxy_set_header X-Forwarded-Port $proxy_x_forwarded_port;
proxy_set_header X-Request-ID $proxy_x_request_id;
proxy_set_header X-Forwarded-Host $proxy_x_forwarded_host;
proxy_set_header X-Server-Proxy-Time $request_time;

gzip on;
gzip_comp_level 5;
Expand Down

0 comments on commit 3bde705

Please sign in to comment.