0.0.10 • Published 5 years ago

vhost-proxy v0.0.10

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Local Development Proxy

Build Status dependencies Status devDependencies Status License: MIT

Setup virtual hosts and self signed certificates to proxy custom domains to local servers

Features

  • Setup virtual hosts for any domain on local port 80, 443
  • Automatically setup self-signed certificates for SSL/TLS endpoints
  • Authomatically setup local dns resolve domains to local virtual host without having to edit host file
  • Proxy web requests to local port or remote targets
  • Echo web requests
  • Mock REST API using Swagger/OpenAPI specification
  • Serve local files

Commands

Usage: vhost-proxy [options] [command]

Options:
  -v, --version                         output the version number
  -h, --help                            output usage information

Commands:
  start|s [options]                     Start
  proxy|p [options] <domain>            Proxy a virtual host
  echo|e [options] <domain>             Start an echo server
  mock|m [options] <domain> <apiSpec>
  list|l
  delete|d <domain> [domains...]        Remove the virtual host proxy for the domain

Example Usage

# Proxy https://www.testdomain.com to the local server 127.0.0.1:8080
> vhost-proxy proxy https://www.testdomain.com -p 8080

# Mock REST API at https://api.testdomain.com using swagger spec
> vhost-proxy mock https://api.testdomain.com examples/PetStore.yaml

# Start servers
> vhost-proxy start

Appendix

This project uses the following libraries