-
Notifications
You must be signed in to change notification settings - Fork 9
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
CI: set up auto-deployment of helia-service-worker gateway with nginx config #20
Comments
cc @2color as this is something we will use to educate people on the difference between HTTP servers like To give a more solid proposal, how does |
Let's do it. |
I personally think I prefer a more explicit |
@lidel could we do that could cause confusion, but could be nice? https://specs-ipfs-tech.ipns.in-browser.ipfs.io/ |
I am afraid we can't do subdomain of I'd say let's go with @2color's suggestion and pick short @ns4plabs are you able to get |
Since this is going to be targeted at users, I'm a bit wary of the Another idea is to use the |
Thank you for all suggestions. We did traditional naming bikeshed 🙃 during colo today and ended up buying
Tomorrow I'll be now working on system for building and deploying to both, along with wildcard certs. Below are my initial thoughts, but better ideas are welcome:
|
Ok, I've been successful with
Things will start working in browser once we set up TLS for HTTPS, because many Web APIs are not enabled on insecure contexts, for now you can test with curl: $ curl http://cid.ipfs.inbrowser.link
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Helia bundle by Webpack</title>
<link
rel="stylesheet"
href="https://unpkg.com/[email protected]/css/tachyons.min.css"
/>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/ipfs.css" />
<link rel="icon" href="/favicon.ico"><script defer src="main.js"></script><script defer src="sw.js"></script></head>
<body>
<div id="root" class="montserrat f5"></div>
</body>
</html> Details for posterity / reviewDNS is configured like this (omitted irrelevant records): ;; CNAME Records
_dnslink.inbrowser.link. 60 IN CNAME _dnslink.helia-service-worker-gateway.on.fleek.co. ; this DNSLink defines the source of truth for root and all subdomains
inbrowser.link. 60 IN CNAME gateway-int.ipfs.io. ; note: cloudflare flattens this to make it work
*.ipfs.inbrowser.link. 60 IN CNAME inbrowser.link. ; catch-all wildcard for IPFS subdomain gateway
*.ipns.inbrowser.link. 60 IN CNAME inbrowser.link. ; catch-all wildcard for IPNS subdomain gateway
;; TXT Records
inbrowser.link. 60 IN TXT "dnslink=/ipns/inbrowser.link" ; this TXT is returned on all _dnslink.*.ip[fn]s. subdomains thanks to wildcard CNAMEs Making request to any domain under
This comes with interesting maintenance benefits:
Remaining work
|
I definitely prefer this approach. we could also have an automated PR (release-please style) that auto-updates on releases of "main" with a checklist of things to test against the .dev url; then merge would just ff For now, it would be nice to have |
Adin reported some POPs struggle to get data from Fleek:
After more pressing bugs are tackled, we will switch production at .link to setup similar to |
@SgtPooki @aschmahmann @2color FYSA we no longer depend on Fleek for publishing and pinning
Example:
Follow-up work is to stabilize .link and only deploy releases there: |
from @lidel
The text was updated successfully, but these errors were encountered: