Skip to content

Commit

Permalink
disable https redirect for raw/block requests
Browse files Browse the repository at this point in the history
  • Loading branch information
guanzo committed Feb 22, 2023
1 parent d29fb19 commit 108e0c6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions container/nginx/confs/tls_proxy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@ server {

include /etc/nginx/conf.d/register.conf;

# TODO: Temporary block to facilitate bifrost gateway tests.
location /ipfs/ {
proxy_set_header Host handoff.strn.localhost;
if ( $arg_format ~ "raw|car" ) {
proxy_pass http://127.0.0.1;
break;
}
return 301 https://$host$request_uri;
}

location / {
return 301 https://$host$request_uri;
}
Expand Down

0 comments on commit 108e0c6

Please sign in to comment.