https://github.com/kremalicious/ipfs-hosting
🤹♀️ Playground exploring various ways of automating deployment of a static website to IPFS.
https://github.com/kremalicious/ipfs-hosting
ipfs
Last synced: about 2 months ago
JSON representation
🤹♀️ Playground exploring various ways of automating deployment of a static website to IPFS.
- Host: GitHub
- URL: https://github.com/kremalicious/ipfs-hosting
- Owner: kremalicious
- Created: 2017-08-07T17:16:05.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-07T17:16:45.000Z (almost 9 years ago)
- Last Synced: 2025-01-29T13:09:14.780Z (over 1 year ago)
- Topics: ipfs
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# IPFS hosting
> Playground exploring various ways of automating deployment of a static website to IPFS.
[](https://github.com/ascribe/javascript)
file | description
-- | --
[`deploy.sh`](deploy.sh) | Simple bash script using locally installed ipfs daemon
[`deploy.js`](deploy.js) | Deploy from Node.js via [js-ipfs-api](https://github.com/ipfs/js-ipfs-api) & [js-ipfs](https://github.com/ipfs/js-ipfs)
## Scope
Every way needs to go from build output to live:
- add `dist/` folder and contents to IPFS
- output the final IPFS url
- write IPFS hash into `versions/current` and add to `versions/history`
- DNS either via IPNS or DNS provider API calls
- consider to be run in a CI context
### DNS settings
```
CNAME: `subdomain.domain.com` -> `gateway.ipfs.io`
TXT: `_dnslink.subdomain.domain.com` -> `dnslink=/ipns/`
```
## Further reading
- [`github:ipfs/examples/websites`: A short guide to hosting your site on ipfs](https://github.com/ipfs/examples/tree/master/examples/websites)
## Authors
- Matthias Kretschmann ([@kremalicious](https://github.com/kremalicious)) - [BigchainDB](https://www.bigchaindb.com)
- Code from the Internet™