@alleycorpnord/https-proxy
v1.1.0
Published
This tool let you run your local dev service with ssl.
Downloads
12
Readme
@alleycorpnord/https-proxy
, A simple local https proxy
This tool let you run your local dev service with ssl.
Installation
In a nodejs project:
yarn add -D @alleycorpnord/https-proxy
Pre-requisites
- mkcert to install the local dev certificates:
brew install mkcert
Usage
The first time, you need to install the certificate globally on your system:
yarn acn-https-proxy cert:install
Then you will need to register a new name for your service (notice sudo
)
sudo yarn acn-https-proxy app:register service_name
Then when you need to develop your local service:
- Run your local service first (In the future, the cli will be able to run your service as well) and note the local port used by your service
- run the proxy with
yarn acn-https-proxy app:proxy proxy_address service_address
# example: yarn dev app:proxy 'reside.local.acn:4201' 'localhost:4200'
You should see the local https address displayed on your terminal:
listening to https://reside.local.acn:8000 -> http://localhost:4200