Simply start a secure gun server w/ LetsEncrypt SSL Certificates
- Fetch SSL certificates from LetsEncrypt
- Automatically renew certificates
- Forward all incoming HTTP requests to HTTPS
- PEM_EMAIL: registration + notification email for LetsEncrypt
- PEM_DOMAIN: domain name for certificate
- PRODUCTION: boolean, false for staging only (fake certificates)
PEM_EMAIL="[email protected]" PEM_DOMAIN="gun.some.domain" nodejs server.js
PEM_EMAIL="[email protected]" PEM_DOMAIN="gun.some.domain" PRODUCTION="true" nodejs server.js