2017 © Pedro Peláez
 

library marquis

OSX localhost reverse proxy tool

image

alexwight/marquis

OSX localhost reverse proxy tool

  • Saturday, February 17, 2018
  • by alexwight
  • Repository
  • 2 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

marquis

A simple way to point local domains to internal ports, (*1)

Introduction

Develop on Mac OS and love docker or vagrant for local development?, (*2)

Sick to death of remembering port numbers you have mapped to your VM's or containers? Join the club., (*3)

Marquis is wrapper around DnsMasq and nginx for Mac developers to point a local domain name to a port running on localhost., (*4)

Installation

Marquis requires macOS and Homebrew. Before installation, you should make sure that no other programs such as Apache or Nginx are binding to your local machine's port 80, (*5)

  • Install or update Homebrew to the latest version using brew update.
  • Install PHP > 5.6 using Homebrew. e.g.$ brew install homebrew/php/php72
  • Install Marquis with Composer via $ composer global require alexwight/marquis. Make sure the ~/.composer/vendor/bin directory is in your system's "PATH".
  • Run the $ marquis install command. This will configure and install Nginx and DnsMasq.

Usage Examples

marquis site [subdomain] [target protocol] [destination port] [-- listen port], (*6)

HTTP

To access target at http://localhost:8080, (*7)

$ marquis site myapp http 8080, (*8)

You can now access at http://myapp.test, (*9)

HTTPS

To access target at https://localhost:8443, (*10)

$ marquis site myapp https 8443, (*11)

You can now access at https://myapp.test, (*12)

SSL Certificate is automatically generated and trusted. HTTP/2 enabled by default., (*13)

Docker example

docker pull karthequian/helloworld:latest, (*14)

docker run -p 8001:80/tcp "karthequian/helloworld:latest", (*15)

Site now available at http://127.0.0.1:8001, (*16)

$ marquis site howdy http 8001, (*17)

Site also now available at http://howdy.test, (*18)

SSL Termination

Proxy will handle the SSL termination so can handle https when the backend does not expose it, e.g., (*19)

marquis site howdy http 8001 443, (*20)

Site also now available at https://howdy.tests, (*21)

Problems?

I'm just using this for myself and putting this up there incase anyone else wants it. If you are using this then I assume you are a developer. Fix it and submit a pull request., (*22)

License

Marquis is open-sourced software licensed under the MIT license, (*23)

The Versions

17/02 2018

dev-master

9999999-dev

OSX localhost reverse proxy tool

  Sources   Download

MIT

The Requires

 

by Alex Wight

17/02 2018

0.16

0.16.0.0

OSX localhost reverse proxy tool

  Sources   Download

MIT

The Requires

 

by Alex Wight

17/02 2018

0.15

0.15.0.0

OSX localhost reverse proxy tool

  Sources   Download

MIT

The Requires

 

by Alex Wight

17/02 2018

0.14

0.14.0.0

OSX localhost reverse proxy tool

  Sources   Download

MIT

The Requires

 

by Alex Wight

17/02 2018

0.13

0.13.0.0

OSX localhost reverse proxy tool

  Sources   Download

MIT

The Requires

 

by Alex Wight

17/02 2018

0.12

0.12.0.0

OSX localhost reverse proxy tool

  Sources   Download

MIT

The Requires

 

by Alex Wight

17/02 2018

0.11

0.11.0.0

OSX localhost reverse proxy tool

  Sources   Download

MIT

The Requires

 

by Alex Wight

17/02 2018