diff --git a/container/nginx/confs/tls_proxy.conf b/container/nginx/confs/tls_proxy.conf index f50086ff..b3d1025d 100644 --- a/container/nginx/confs/tls_proxy.conf +++ b/container/nginx/confs/tls_proxy.conf @@ -58,7 +58,6 @@ server { include /etc/nginx/conf.d/register.conf; - # TODO: Temporary block to facilitate bifrost gateway tests. location /ipfs/ { proxy_http_version 1.1; proxy_set_header Host handoff.strn.localhost; diff --git a/container/shim/src/modules/log_ingestor.js b/container/shim/src/modules/log_ingestor.js index 8352ff38..e22fd5ed 100644 --- a/container/shim/src/modules/log_ingestor.js +++ b/container/shim/src/modules/log_ingestor.js @@ -78,7 +78,9 @@ function parseSingleLine(line) { return acc; }, {}); - if (vars.clientAddress === "127.0.0.1") return null; + if (vars.clientAddress === "127.0.0.1" && vars.url.hostname !== "handoff.strn.localhost") { + return null; + } const isIPFS = vars.url.pathname.startsWith("/ipfs/"); const isIPNS = vars.url.pathname.startsWith("/ipns/");