privacytools.io icon indicating copy to clipboard operation
privacytools.io copied to clipboard

Add media assets to IPFS

Open jonaharagon opened this issue 6 years ago • 5 comments

Description

Testing

Related: #1373

Check List

jonaharagon avatar Oct 03 '19 03:10 jonaharagon

Deploy preview for privacytools-io ready!

Built with commit f0965719ee355da55fa40c1642898929040ccd75

https://deploy-preview-1374--privacytools-io.netlify.com

netlify[bot] avatar Oct 03 '19 03:10 netlify[bot]

Hmm. At a glance, having a CSP might be fundamentally incompatible with how IPFS operates which might make this change impossible.


<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self' 'unsafe-inline' https://*.privacytools.io 127.0.0.1; style-src 'self' 'unsafe-inline' 127.0.0.1; img-src 'self' data: https://*.privacytools.io 127.0.0.1; object-src 'none'; frame-src https://stats.privacytools.io; font-src 'self'; manifest-src 'self';">

jonaharagon avatar Oct 03 '19 03:10 jonaharagon

I wonder if the IPFS gateway should be a variable in _config.yml like I do with mikaela.info ?

Mikaela avatar Oct 05 '19 16:10 Mikaela

I don't see why we'd ever change it though. I wouldn't want to trust a third-party gateway for non-IPFS users (especially since most traffic would be going to whatever gateway we specify).

Obviously if this were merged the IPFS gateway we host would get a little more attention than it currently does :P

jonaharagon avatar Oct 05 '19 22:10 jonaharagon

I don't see why we'd ever change it though. I wouldn't want to trust a third-party gateway for non-IPFS users (especially since most traffic would be going to whatever gateway we specify).

What if the gateway ever gets renamed or there will be IPFS gateway redirector instead or something like that? I think it could also be beneficial for forks and maybe local testing.

Mikaela avatar Oct 06 '19 11:10 Mikaela