Skip to content

Commit 95260f7

Browse files
committed
more logging in reverse-proxy
1 parent d373f8d commit 95260f7

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

tools/reverse-proxy/nginx.conf

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,17 @@ http {
1616
'$status $body_bytes_sent "$http_referer" '
1717
'"$http_user_agent" "$http_x_forwarded_for"';
1818

19-
access_log /var/log/nginx/access.log main;
19+
# Debug log format - shows Host header details for troubleshooting routing issues
20+
log_format debug_routing '$remote_addr [$time_local] "$request" '
21+
'status=$status '
22+
'host="$host" '
23+
'http_host="$http_host" '
24+
'server_name="$server_name" '
25+
'scheme=$scheme '
26+
'x_forwarded_host="$http_x_forwarded_host" '
27+
'x_forwarded_proto="$http_x_forwarded_proto"';
28+
29+
access_log /var/log/nginx/access.log debug_routing;
2030

2131
sendfile on;
2232
#tcp_nopush on;

web-integrations/google-secure-signals/react-client-side/server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const port = process.env.PORT || 3044;
1717

1818
// Healthcheck endpoint for Kubernetes probes - must be before all other routes and middleware
1919
app.get('/ops/healthcheck', (req, res) => {
20-
console.log('Healthcheck endpoint hit');
2120
res.type('text/plain');
2221
res.status(200).send('healthy\n');
2322
return; // Explicit return to prevent further processing

web-integrations/javascript-sdk/react-client-side/server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const port = process.env.PORT || 3034;
1717

1818
// Healthcheck endpoint for Kubernetes probes - must be before all other routes and middleware
1919
app.get('/ops/healthcheck', (req, res) => {
20-
console.log('Healthcheck endpoint hit');
2120
res.type('text/plain');
2221
res.status(200).send('healthy\n');
2322
return; // Explicit return to prevent further processing

0 commit comments

Comments
 (0)