Simple Node.js Web server with SSL support.
- Standard ports:
node server.js
- Customs ports:
node server.js 8080 4430
- Run
node server.js
- Open Chrome and browse to
https://localhost
- Click on
ADVANCED
- Click on
Proceed to localhost (unsafe)
This workaround is useful for testing purposes because, for example, a Web App may require access to the webcam and that is not allowed using a non-secure connection.
- Install Forever:
npm install -g forever
- Start the server:
forever start -a -l /dev/null -c node server.js > /dev/null 2>&1
- Stop the server:
forever stop -a -l /dev/null -c node server.js > /dev/null 2>&1