FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[Original HTTPS Page]
NodeServer/native-http2-alpn at master · HowProgrammingWorks/NodeServer · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
HowProgrammingWorks
/
NodeServer
Public
Notifications
You must be signed in to change notification settings
Fork
44
Star
95
Code
Issues
0
Pull requests
6
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
NodeServer
/
native-http2-alpn
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
Breadcrumbs
NodeServer
/
native-http2-alpn
/
Copy path
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
cert
cert
README.md
README.md
server.js
server.js
README.md
Outline
Start HTTP server
With self-signed certificate (for testing)
Generate certificates, run: ./cert/generate.sh
Start server: node server.js
Open in browser: https://127.0.0.1:8000/
With certbot (for production)
Let's Encrypt is a free certificate authority:
https://letsencrypt.org/
Use Certbot (free tool for automatically generatinging Let’s Encrypt certificates to enable HTTPS):
https://certbot.eff.org/
Install: dnf -y install certbot
Generate certificate: certbot certonly --standalone -d www.domain.com -d domain.com -m your.name@domain.com --agree-tos --no-eff-email
Copy certificate: cp /etc/letsencrypt/live/domain.com/fullchain.pem ./cert/cert.pem
Copy private key: cp /etc/letsencrypt/live/domain.com/privkey.pem ./cert/key.pem
Or use your web server for challenge exchange: certbot certonly --webroot -w ./ -d domain.com -m your.name@domain.com --agree-tos --no-eff-email
Back
|
FazBrowse Home
|
New Git URL