Micro Cluster Save Abandoned

Run multiple micro servers and a front proxy at a time

Project README

micro-cluster


DEPRECATED: Please use micro-proxy instead. This repo right here is not maintained anymore.


XO code style Slack Channel

Run multiple micro servers and a front proxy at a time, with a simple configuration file.

Example

Create a config file like the following.

export default {
  services: {
    myService: {
      path: 'index.js',
      env: { NODE_ENV: 'production' }
    },
    woot: 'woot.js'
  },

  locations: {
    '^/path-regex/to/serve/?$': {
      rewrite: ['^(.*)$', '$1/rewritten'],
      proxySetHeaders: { 'X-CUSTOM-HEADER': '1' },
      proxy: 'myService'
    }
    '^/woot/?$': 'woot'
  }
}

Run servers.

micro-cluster -p 3000 app.js
Open Source Agenda is not affiliated with "Micro Cluster" Project. README Source: vercel/micro-cluster
Stars
176
Open Issues
6
Last Commit
6 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating