A standard for webservers that's just right.
Go to file
AJ ONeal c947d2c9e1 v1.1.2 2015-07-06 12:26:13 -06:00
.gitignore Initial commit 2015-06-24 14:38:30 -06:00
LICENSE Initial commit 2015-06-24 14:38:30 -06:00
README.md add ability to specify content for / 2015-06-30 17:11:01 -06:00
app.js add ability to specify content for / 2015-06-30 17:11:01 -06:00
package.json v1.1.2 2015-07-06 12:26:13 -06:00
serve.js add ability to specify content for / 2015-06-30 17:11:01 -06:00

README.md

localhost.daplie.com-server

Serves HTTPS using TLS (SSL) certs for localhost.daplie.com - great for testing and development.

Install

npm install --global serve-https
serve-https
Serving /Users/foo/ at https://localhost.daplie.com:1443

Usage

  • -p <port> - i.e. sudo serve-https -p 443
  • -d <dirpath> - i.e. serve-https -d /tmp/
  • -c <content> - i.e. server-https -c 'Hello, World!'

Examples

serve-https -p 1443 -c 'Hello from 1443' &
serve-https -p 2443 -c 'Hello from 2443' &
serve-https -p 3443 -d /tmp &

curl https://localhost.daplie.com:1443
> Hello from 1443

curl --insecure https://localhost:2443
> Hello from 2443

curl https://localhost.daplie.com:3443
> [html index listing of /tmp]