hexojs / hexo-server

Server module for Hexo.
MIT License
82 stars 51 forks source link

[FEATURE REQUEST] SSL localhost support #340

Open dimaslanjaka opened 1 month ago

dimaslanjaka commented 1 month ago

Check List

Feature Request

Please add parameter eg --cert --cert-private for binding SSL.

Please refer to https://stackoverflow.com/questions/19665863/how-do-i-use-a-self-signed-certificate-for-a-https-node-js-server

This useful for testing google recaptcha, google adsense, and other platform must have SSL installed on domain (127.0.0.1 domain.com in /etc/hosts)

Additional context

Adsense localhost testing https://stackoverflow.com/questions/26864860/is-google-adsense-available-for-localhost