Verified Commit 52b5b3f1 authored by Aral Balkan's avatar Aral Balkan
Browse files

Add instructions regarding port 443

parent 5ca83076
......@@ -15,6 +15,28 @@ npm i -g
(On macOS, you must [manually install the dependency](#macos-dependency) for now.)
## Regarding port 443
The server is started on port 443 by default. This is on purpose as an overarching goal of https-server is to make your development environment mirror your production environment as closely possible to remove that complexity from the code you have to write.
However, you must have your system setup to allow Node (Linux) or your account (macOS) to bind to so-called “privileged” ports so that this works. I will automate this as part of the process in the future but, for the time being:
### Linux
sudo setcap 'cap_net_bind_service=+ep' $(which node)
### macOS
sudo touch /etc/authbind/byport/443
sudo chown $(whoami) /etc/authbind/byport/443
sudo chmod 755 /etc/authbind/byport/443
macOS instructions courtesy of [Setup authbind on Mac OS]( by Steve Mu.
## Usage
### Commandline
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment