// This is a static Express 5 web server script which can // respond to both HTTP and HTTPS clients.import express from 'express'; const app = express(); app.use(express.static('/your directory of web docs')) app.listen(8000); // this port is not secure// Add the following code to handle HTTPS requests. // Visit Let's Encrypt for more information about their certificates.import fs from 'fs'; import https from 'https'; const certsDir = '/your directory of certificates'; const SSLparams = { key : fs.readFileSync(certsDir + 'privkey.pem'), cert : fs.readFileSync(certsDir + 'cert.pem'), ca : fs.readFileSync(certsDir + 'chain.pem') }; https.createServer(SSLparams, app).listen(443);// https://sean.brunnock.com 4/2026