Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Hypha Spike: Multiwriter 2

Blog post

Usage

  1. Create keys using mkcert in the /always-on directory:

    # If you haven’t used mkcert before, you must first create
    # and install your local Certificate Authority (CA):
    mkcert -install
    
    # Generate your keys for localhost:
    mkcert localhost

    This will create the localhost.pem and localhost-key.pem files used by the server to create a TLS connection.

    (Note: for the certificate to be accepted without warning, you must restart your browser after running mkcert -install.)

  2. Give Node.js permission to bind to ports < 1024 (i.e., 80 and 443) without being root:

    Linux

    sudo setcap 'cap_net_bind_service=+ep' $(which node)

    macOS

    Setup authbind on macOS and, in addition to the instructions in the link-to post, also setup port 444 in addition to ports 443 and 80 as shown there. (Note: Port 80 is not required for this app.)

  3. Run the app:

    Linux

    npm start

    macOS

    authbind node always-on/index.js