-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: improved Origin detection via img tag #117
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[ | ||
"https://ipfs.io/ipfs/:hash", | ||
"https://:hash.ipfs.dweb.link", | ||
"https://dweb.link/ipfs/:hash", | ||
"https://gateway.ipfs.io/ipfs/:hash", | ||
"https://ipfs.infura.io/ipfs/:hash", | ||
"https://ninetailed.ninja/ipfs/:hash", | ||
|
@@ -10,8 +10,8 @@ | |
"https://hardbin.com/ipfs/:hash", | ||
"https://gateway.blocksec.com/ipfs/:hash", | ||
"https://cloudflare-ipfs.com/ipfs/:hash", | ||
"https://:hash.ipfs.cf-ipfs.com", | ||
"https://ipns.co/:hash", | ||
"https://cf-ipfs.com/ipfs/:hash", | ||
"https://ipns.co/ipfs/:hash", | ||
"https://ipfs.mrh.io/ipfs/:hash", | ||
"https://gateway.originprotocol.com/ipfs/:hash", | ||
"https://gateway.pinata.cloud/ipfs/:hash", | ||
|
@@ -29,12 +29,11 @@ | |
"https://permaweb.io/ipfs/:hash", | ||
"https://ipfs.stibarc.com/ipfs/:hash", | ||
"https://ipfs.best-practice.se/ipfs/:hash", | ||
"https://:hash.ipfs.2read.net", | ||
"https://2read.net/ipfs/:hash", | ||
"https://ipfs.2read.net/ipfs/:hash", | ||
"https://storjipfs-gateway.com/ipfs/:hash", | ||
"https://ipfs.runfission.com/ipfs/:hash", | ||
"https://trusti.id/ipfs/:hash", | ||
"https://:hash.ipfs.cosmos-ink.net", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've reached out to @LinusCDE, and we are working on a fix, but for now its better to remove it to reduce confusion. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good idea. Something came up, so it's good to remove it for now. I'll try to address it tomorrow. What about the IPNS? Same for that? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, redirects will work (ideally, redirect returned by go-ipfs, because that gives you CID conversion for free) For ipns you could use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @lidel I've now added a rule that should fix that.
This nginx rule is applied to I also added your PublicGateway suggestion from your second mail.
Running it on my Pi (cosmos-ink.net main domain) would be probably more trouble at this point, because I would need to rebuild the docker-image for armv7 or aarch64 support. But for any conversion that isn't For the ipfs/ipns subdomains I also added two entries to prevent using that redirection rule when the cid is already in the subdomain (to allow Could you check whether it now works as expected? I'll probably then create a PR to re-add the entry. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It works fine for CIDv1, but redirect alone is not enough if someone passes CIDv0. To illustrate, if you open https://cosmos-ink.net/ipfs/QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR it should redirect to https://bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi.ipfs.cosmos-ink.net/ ps. Do you mind commenting in ipfs/kubo#4931 regarding the need for docker image working out of the box on rpi? |
||
"https://ipfs.overpi.com/ipfs/:hash", | ||
"https://ipfs.lc/ipfs/:hash", | ||
"https://ipfs.leiyun.org/ipfs/:hash", | ||
|
@@ -52,7 +51,7 @@ | |
"https://ipfs.fleek.co/ipfs/:hash", | ||
"https://ipfs.jbb.one/ipfs/:hash", | ||
"https://ipfs.yt/ipfs/:hash", | ||
"https://:hash.ipfs.jacl.tech", | ||
"https://jacl.tech/ipfs/:hash", | ||
"https://hashnews.k1ic.com/ipfs/:hash", | ||
"https://ipfs.vip/ipfs/:hash", | ||
"https://ipfs.k1ic.com/ipfs/:hash" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,3 +90,7 @@ div.Node div.Took { | |
font-size: 80%; | ||
font-style: italic; | ||
} | ||
|
||
div.Node.origin div.Link::after { | ||
content: " 💚" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
load events + timers + promises is some sticky business...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed: entire
app.js
needs to be re-written from scratch in modern JS (painfully needs rate-limiting via execution queues, similar to ones we have injs-libp2p-delegated-*
)@jessicaschilling just like with cid.ipfs.io, we should rewrite this app (both backend and frontend) at some point (2021 Q1/Q2-ish?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lidel There's a long tail of improvements to the gateway checker that never got completed here: #93
I'd suggest seeing what of that could be salvaged, or at least using that as the base issue for a rewrite. I'll add the notes from this PR to that issue.