A JavaScript library (and runnable server/process) for hosting your own #indieweb.
Great question. That has an evolving answer.
Currently
Future
make server
Restart on file changes with make watch
.
Configuration is accomplished with both config files (in ./config) and environment variables. Environment Variables have a higher priority.
Configuration defaults are loaded from defaults.json.
Accepted configuration parameters:
indieweb
- General settings that are passed to all modules
.domain
- Public domain of your indieweb.me
- A JSON Object describing the owner of this site. Currently this uses a JSON-LD Serialization of an AS Person.indieweb-home
- Settings for the homepage module
.title
- Title of the pageDEBUG
- Exactly as described in debug README. DEBUG=*
to show all logs.config
- Path to config file other than defaults.json. config=/path/to/config.json make server
PORT
- Port to listen for HTTP traffic onfindPortBase
- If no PORT
, portfinder will start at this port and look 1 by 1 to find an open porthttps
- Settings for HTTPS support
.require
- Require HTTPS. All requests over http will be redirected to https..trustXForwardedProto
- If incoming protocol is 'http', but the request has header for 'X-Forwarded-Proto: https', still treat it as if https. Relevant StackOverflowIf you prefer, you can use indieweb
as a library.
Install with npm install --save indieweb
.
Use like any other express app.
const yourApp = require('express')();
const indiewebConfig = {};
yourApp.use('/indieweb', require('indieweb')(indiewebConfig))
File an issue