Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Adding diagnostics to nginx.conf #117

Merged
merged 1 commit into from Jul 24, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 13 additions & 0 deletions reverse-proxy/content/nginx.conf
Expand Up @@ -61,6 +61,7 @@ http {
set $devicesimulation_endpoint "http://devicesimulation:9003";
set $telemetry_endpoint "http://telemetry:9004";
set $config_endpoint "http://config:9005";
set $diagnostics_endpoint "http://diagnostics:9006";

location / {
proxy_pass $webui_endpoint;
Expand Down Expand Up @@ -138,5 +139,17 @@ http {
proxy_read_timeout 3600s;
proxy_redirect off;
}

location /diagnostics/ {
rewrite /diagnostics/(.*) /$1 break;
proxy_pass $diagnostics_endpoint;
proxy_pass_header Authorization;
# Used to distinguish internal/external traffic
proxy_set_header X-Source external;
proxy_buffering off;
client_max_body_size 0;
proxy_read_timeout 3600s;
proxy_redirect off;
}
}
}