K
K
KnightForce2017-01-30 22:08:23
Domain Name System
KnightForce, 2017-01-30 22:08:23

Setting up SSL and DNS for localhost on Node.js?

Previously worked on front-end. I wrote a project on Node.js, but on http, I want to set it up on localhost https before putting it into operation.
To generate a certificate by ubuntu, you need a domain name.
How to set localhost domain and configure dns for Node.js? Because I don't use Nginx and nothing comes to mind.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2017-01-30
@KnightForce

Take any domain name and enter it in /etc/hosts or windows/system32/drivers/etc/hosts
127.0.0.1 mycompany.com
and that's it, generate a certificate for mycompany.com. It will only work on your computer. True, if your computer has a white IP address, then you can also register xxxx mycompany.com, and everyone who registers this at home will go to you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question