Skip to content

Commit

Permalink
submit logs of handoff.strn.localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
guanzo committed Jul 5, 2023
1 parent a7bd6be commit 8dbb096
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion container/nginx/confs/tls_proxy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion container/shim/src/modules/log_ingestor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/");
Expand Down

0 comments on commit 8dbb096

Please sign in to comment.