Skip to content

Instantly share code, notes, and snippets.

@MarioIshac
Created February 5, 2021 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarioIshac/e6971ab0b343da210de62ebb1c6e2f99 to your computer and use it in GitHub Desktop.
Save MarioIshac/e6971ab0b343da210de62ebb1c6e2f99 to your computer and use it in GitHub Desktop.
Example to reproduce $upstream_response_time being a dash.
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