0.0.3 • Published 2 years ago

@kenystev/local-https-server v0.0.3

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

local-https-server

local-https-server is a CLI tool to provide an easy way to run a local HTTPS server with their valid certifications and port-forward the trafic to another server running locally.

Installation

Use the package manager npm to install local-https-server.

npm install --save-dev @kenystev/local-https-server

Usage

# run the server with default ports and auto-generated certs
local-https-server start

# override the default port to HTTPS server
local-https-server start -p 3005

# override the default forwarding port
local-https-server start -pp 3005

# override the default certs' key to provide some custom key
local-https-server start -k "<path/to/file>"

# override the default certs key to provide some custom certs
local-https-server start -c "<path/to/file>"

Note Make sure to add the .certs directory to your .gitignore file in order to not expose your cerdentials

Utility commands

by default after installation, local-https-server automatically runs the pre-required commands to install deps and setup the certs, but if anything happens or accidentally you have deleted the .certs directory created after installation then you can run independently the right commands:

# Install needed dependencies to generate the certifications
local-https-server install-deps

# Generate the valid certifications to run HTTPS server and put them in .certs directory
local-https-server setup-certs

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago