All Projects → dat-land → Hypercloud

dat-land / Hypercloud

A hosting server for Dat. [ARCHIVED - Use Hashbase instead!]

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Hypercloud

Dathttpd
Replaced by Homebase! See https://github.com/beakerbrowser/homebase.
Stars: ✭ 282 (+193.75%)
Mutual labels:  dat, server, p2p
Patchwork
A decentralized messaging and sharing app built on top of Secure Scuttlebutt (SSB).
Stars: ✭ 3,500 (+3545.83%)
Mutual labels:  server, p2p
paperslip
share hard-to-transmit snippets with easy-to-pronounce names using dht magic
Stars: ✭ 37 (-61.46%)
Mutual labels:  dat, p2p
Dat React Native
Browse through the web with the Dat protocol in your device!
Stars: ✭ 25 (-73.96%)
Mutual labels:  dat, p2p
Datbase
[DEPRECATED] Open data sharing powered by Dat
Stars: ✭ 251 (+161.46%)
Mutual labels:  dat, p2p
dat-workshop
How to build web apps using Dat. A workshop by GEUT.
Stars: ✭ 50 (-47.92%)
Mutual labels:  dat, p2p
Dat Keyserver
a distributed PGP keyserver project based on the dat protocol
Stars: ✭ 89 (-7.29%)
Mutual labels:  dat, p2p
Sciencefair
The futuristic, fabulous and free desktop app for working with scientific literature 🔬 📖
Stars: ✭ 561 (+484.38%)
Mutual labels:  dat, p2p
Tox Node
A server application to run tox node written in pure Rust
Stars: ✭ 47 (-51.04%)
Mutual labels:  server, p2p
Freeflix
Freeflix is a streaming server that integrates a BitTorrent client.
Stars: ✭ 48 (-50%)
Mutual labels:  server, p2p
Hyperdb Examples
a small introduction to getting started with hyperdb
Stars: ✭ 53 (-44.79%)
Mutual labels:  dat, p2p
Enoki
ultralight tools for creating p2p sites
Stars: ✭ 222 (+131.25%)
Mutual labels:  dat, p2p
Sdk
Write your own dat app!
Stars: ✭ 215 (+123.96%)
Mutual labels:  dat, p2p
Ddn
DDN, Data Delivery Network, a next generation blockchain system
Stars: ✭ 118 (+22.92%)
Mutual labels:  server, p2p
Hyperfeed
decentralized rss publishing
Stars: ✭ 60 (-37.5%)
Mutual labels:  dat, p2p
Random Access Http
Continuous reading from a http(s) url using random offsets and lengths for peers in a distributed system
Stars: ✭ 39 (-59.37%)
Mutual labels:  dat, p2p
Datr
R package to interface with the decentralized dat network.
Stars: ✭ 56 (-41.67%)
Mutual labels:  dat, p2p
Datradio
p2p music player for {old} beaker and dat
Stars: ✭ 77 (-19.79%)
Mutual labels:  dat, p2p
Xsrv
[mirror] Install and manage self-hosted services/applications, on your own server(s) - ansible collection and utilities
Stars: ✭ 89 (-7.29%)
Mutual labels:  server
Cso2 Master Server
A master server for CSO2
Stars: ✭ 91 (-5.21%)
Mutual labels:  server

Hypercloud ☁

Hypercloud is a public peer service for Dat archives. It provides a HTTP-accessible interface for creating an account and uploading Dats.

Features:

  • Simple Dat uploading and hosting
  • Easy to replicate Dats, Users, or entire datasets between Hypercloud deployments
  • Configurable user management
  • Easy to self-deploy

Links:

Setup

Clone this repository, then run

npm install
cp config.defaults.yml config.development.yml

Modify config.development.yml to fit your needs, then start the server with npm start.

Configuration

Before deploying the service, you absolutely must modify the following config.

Basics

dir: ./.hypercloud            # where to store the data
brandname: Hypercloud         # the title of your service
hostname: hypercloud.local    # the hostname of your service
port: 8080                    # the port to run the service on
rateLimiting: true            # rate limit the HTTP requests?
defaultDiskUsageLimit: 100mb  # default maximum disk usage for each user
pm2: false                    # set to true if you're using https://keymetrics.io/

Lets Encrypt

You can enable lets-encrypt to automatically provision TLS certs using this config:

letsencrypt:
  debug: false          # debug mode? must be set to 'false' to use live config
  email: '[email protected]'  # email to register domains under

If enabled, port will be ignored and the server will register at ports 80 and 443.

Admin Account

The admin user has its credentials set by the config yaml at load. If you change the password while the server is running, then restart the server, the password will be reset to whatever is in the config.

admin:
  email: '[email protected]'
  password: myverysecretpassword

UI Module

The frontend can be replaced with a custom npm module. The default is hypercloud-ui-vanilla.

ui: hypercloud-ui-vanilla

HTTP Sites

Hypercloud can host the archives as HTTP sites. This has the added benefit of enabling dat-dns shortnames for the archives. There are two possible schemes:

sites: per-user

Per-user will host archives at username.hostname/archivename, in a scheme similar to GitHub Pages. If the archive-name is == to the username, it will be hosted at username.hostname.

Note that, in this scheme, a DNS shortname is only provided for the user archive (username.hostname).

sites: per-archive

Per-archive will host archives at archivename-username.hostname. If the archive-name is == to the username, it will be hosted at username.hostname.

By default, HTTP Sites are disabled.

Closed Registration

For a private instance, use closed registration with a whitelist of allowed emails:

registration:
  open: false
  allowed:
    - [email protected]
    - [email protected]

Reserved Usernames

Use reserved usernames to blacklist usernames which collide with frontend routes, or which might be used maliciously.

registration:
  reservedNames:
    - admin
    - root
    - support
    - noreply
    - users
    - archives

Session Tokens

Hypercloud uses Json Web Tokens to manage sessions. You absolutely must replace the secret with a random string before deployment.

sessions:
  algorithm: HS256                # probably dont update this
  secret: THIS MUST BE REPLACED!  # put something random here
  expiresIn: 1h                   # how long do sessions live?

Jobs

Hypercloud runs some jobs periodically. You can configure how frequently they run.

# processing jobs
jobs:
  popularArchivesIndex: 30s  # compute the index of archives sorted by num peers
  userDiskUsage: 5m          # compute how much disk space each user is using
  deleteDeadArchives: 5m     # delete removed archives from disk

Emailer

Todo, sorry

Tests

Run the tests with

npm test

To run the tests against a running server, specify the env var:

REMOTE_URL=http://{hostname}/ npm test

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].