Created
February 5, 2021 20:28
-
-
Save MarioIshac/e6971ab0b343da210de62ebb1c6e2f99 to your computer and use it in GitHub Desktop.
Example to reproduce $upstream_response_time being a dash.
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
events {} | |
http { | |
log_format main '$upstream_addr $upstream_status $upstream_response_time'; | |
access_log /dev/stdout main; | |
server { | |
listen 8000; | |
location / { | |
proxy_pass http://localhost:8001; | |
add_header X-Trip-Time $request_time; | |
add_header X-Addr $upstream_addr; | |
add_header X-Status $upstream_status; | |
add_header X-Process-Time $upstream_response_time; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment