vercel / Micro Proxy
Licence: mit
[DEPRECATED] Simplest proxy server for microservices
Stars: ✭ 358
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Micro Proxy
Micro Medium Api
Microservice for fetching the latest posts of Medium with GraphQL.
Stars: ✭ 138 (-61.45%)
Mutual labels: microservice, now, zeit
micro-unfurl
Small microservice that unfurls a URL and returns the OpenGraph meta data
Stars: ✭ 28 (-92.18%)
Mutual labels: now, zeit
Temps
λ A selfhostable serverless function runtime. Inspired by zeit now.
Stars: ✭ 15 (-95.81%)
Mutual labels: now, zeit
myethereumapp
Web client for viewing data from the Etherscan API
Stars: ✭ 18 (-94.97%)
Mutual labels: now, zeit
notion-custom-domain
📝 Custom domains for your public Notion pages
Stars: ✭ 23 (-93.58%)
Mutual labels: now, zeit
now-docs
[WIP] Deploy docs with a single command using Now
Stars: ✭ 45 (-87.43%)
Mutual labels: now, zeit
Covid19 Brazil Api
API com dados atualizados sobre o status do COVID-19 🦠
Stars: ✭ 300 (-16.2%)
Mutual labels: now, zeit
Login With
Stateless login-with microservice for OAuth
Stars: ✭ 2,301 (+542.74%)
Mutual labels: microservice, now
now-swift-example
Example for use Kitura framework and swift lang with https://zeit.co/now.
Stars: ✭ 18 (-94.97%)
Mutual labels: now, zeit
Generator Micro Service
🛫 Yeoman generator to kick-start your microservice with `micro` and `ava`!
Stars: ✭ 145 (-59.5%)
Mutual labels: microservice, now
now-custom-runtime
ZEIT Now v2.0 builder for custom AWS Lambda runtimes
Stars: ✭ 21 (-94.13%)
Mutual labels: now, zeit
Skrop
Image transformation service using libvips, based on Skipper.
Stars: ✭ 71 (-80.17%)
Mutual labels: microservice, proxy-server
docker-craft-nginx
🐳 A minimal Docker container for Craft CMS, intended for use with zeit-now.
Stars: ✭ 26 (-92.74%)
Mutual labels: now, zeit
now-cli
development mode (now dev
). micro
remains fully supported and under active development.
DEPRECATED. This project is unmaintained in favor of micro-proxy
Usage
Firstly, install the package:
npm i -g micro-proxy
Then add following rules to a filename called rules.json
:
{
"rules": [
{"pathname": "/blog", "method":["GET", "POST", "OPTIONS"], "dest": "http://localhost:5000"},
{"pathname": "/**", "dest": "http://localhost:4000"}
]
}
Visit path alias documentation to learn more about rules.
Run the proxy server with:
micro-proxy -r rules.json -p 9000
Now you can access the proxy via: http://localhost:9000
Programmatic Usage
You can run the proxy programmatically inside your codebase.
For that, add micro-proxy
to your project with:
npm install micro-proxy
Then create the proxy server like this:
const createProxy = require('micro-proxy')
const proxy = createProxy([
{"pathname": "/blog", "method":["GET", "POST", "OPTIONS"], "dest": "http://localhost:5000"},
{"pathname": "/**", "dest": "http://localhost:4000"}
])
proxy.listen(9000, (err) => {
if (err) {
throw err
}
console.log(`> Ready on http://localhost:9000`)
})
Production Usage
You can use micro-proxy
as a production deployment.
But if you are using ZEIT now, you can simply use path alias rules instead.
(It's a FREE service available for all ZEIT now deployments.)
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].