https.createServer(options, (req, res) => if (req.url === '/2021') res.writeHead(200, 'Content-Type': 'text/html' ); res.end('<h1>Welcome to the 2021 local project</h1>'); else res.writeHead(404); res.end();
ng serve --port 11501 --ssl A Docker container running an HTTPS service can publish its internal port (e.g., 443) to host port 11501:
Generate self-signed certs with OpenSSL:
).listen(11501, () => console.log('HTTPS server running at https://localhost:11501'); );