Skip to content
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

COMPOST website on DWeb #7

Closed
7 tasks done
benhylau opened this issue Jul 10, 2020 · 6 comments
Closed
7 tasks done

COMPOST website on DWeb #7

benhylau opened this issue Jul 10, 2020 · 6 comments
Assignees
Labels
COMPOST: Technical Magazine software and website development

Comments

@benhylau
Copy link
Member

benhylau commented Jul 10, 2020

🎟️ Re-ticketed from: #
πŸ“… Due date: Jan 18, 2021
🎯 Success criteria: Put COMPOST website on WWW, IPFS, HYPERCORE.

Task Summary

Publish COMPOST site on staging.compost.digital then compost.digital.

Publish COMPOST api on api.staging.compost.digital then api.compost.digital.

To Do

  • Set up Nginx files for WWW @ASoTNetworks
    • Map <project.domain>/ -> distributed.press/compost/ and verify SSL certs
    • Map api.<project.domain>/ -> api.distributed.press/compost/ and verify SSL certs
    • Map <project.domain>/ -> ~/.distributed-press/data/projects/staging.compost.digital/www/ and verify SSL certs
    • Map api.<project.domain>/ -> ~/.distributed-press/data/projects/staging.compost.digital/api/ and verify SSL certs
  • Publish on IPFS
  • Publish on Hypercore
  • Verify that site and api work according to the URLs in the spec
  • Update content to display DWeb URLs
@benhylau benhylau added this to the M0.2 COMPOST pre-launch milestone Jul 10, 2020
@benhylau
Copy link
Member Author

benhylau commented Nov 30, 2020

@ASoTNetworks you can publish this site if you like to test out #17 this way we have two web roots to test:

  • compost.digital
  • one.compost.digital

@benhylau benhylau added the COMPOST: Technical Magazine software and website development label Dec 3, 2020
@benhylau benhylau removed this from the M0.2 COMPOST pre-launch milestone Dec 21, 2020
@benhylau benhylau self-assigned this Dec 21, 2020
@benhylau
Copy link
Member Author

benhylau commented Dec 23, 2020

IPFS more or less works now, aside from some subdomain-based gateway/Opera Android issue that IPFS is already investigating. See bottom right of the footer here, it's working https://ipfs.io/ipns/staging.compost.digital

For Hypercore pinning, it's "code complete" but somehow dat-store doesn't do what I expect it to do. Specifically:

Aside from this, the last couple commits I made to https://github.com/hyphacoop/compost.digital contains some learnings about how to design dweb compatible websites. @bennlich we should sync up in Jan about this, mainly relating to paths and ending files with .html

  1. links need to be relative, with ./ and ../ indicating the level of depth
  2. URLs need to end in .html not some virtual path like ./about/

cc. @ASoTNetworks @RangerMauve

@benhylau
Copy link
Member Author

benhylau commented Dec 26, 2020

On IPFS, even though bafybeigks5khlraols4otk3n4nlcipzphyjxpkbgfboiihby5rkjc75aqm is available on our server and ipfs.io, I can't seem to get it on some other servers with ipfs get bafybeigks5khlraols4otk3n4nlcipzphyjxpkbgfboiihby5rkjc75aqm and public gateways. Let's try again after we open 4001.

@benhylau
Copy link
Member Author

benhylau commented Dec 28, 2020

  • pinning the website just hung at hyperdrive-publisher.sync

This is fixed temporarily with a long sync timeout, and filed RangerMauve/hyperdrive-publisher#8 (comment) for hypercore-publisher to implement a long-term fix.

Hopefully this also addresses the other two hypercore problems above.

(Edit: Actually it didn't fully work. A bunch of assets didn't get uploaded https://hyper.distributed.press/staging.compost.digital/about.html#partners-and-supporters see how six of those png files are missing.)

@benhylau
Copy link
Member Author

All the links in this spec's example are now working πŸš€

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
COMPOST: Technical Magazine software and website development
Projects
None yet
Development

No branches or pull requests

2 participants