I go to the WWW Websites in portal and click the detail of domain chaowenguo.serv00.net and see
Details: chaowenguo.serv00.net
Domain name chaowenguo.serv00.net
Directory /usr/home/chaowenguo/domains/chaowenguo.serv00.net
Website type nodejs
GZIP compression on
Force SSL on
Interpreter path /usr/local/bin/node22
Web Application Firewall
Blacklist
Minimal TLS version support TLS 1.3
Cache
Anonymize statistics
Debug cache
Number of processes
4
Cache cookie
I already set force ssl to true and set min ssl version to 1.3
I also go to ssl website and obtain a let's encrypt ssl certificate.
I use node22 to support the website chaowenguo.serv00.net.
I want to know whether Phusion Passenger is smart enough to use the ssl certificate.
So that I use:
var http = require('http');
var server = http.createServer(function(req, res) {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end("hello world!\n");
});
server.listen(3000);
is enough.
Or I need to download the ssl certificate and use
http2.createSecureServer({key:await fs.readFile('key.pem', 'utf8'), cert:await fs.readFile('cert.pem', 'utf8')}).listen(3000)
to enable ssl?