I'm new to Node and I want my website, working with subdomains for my college projects using vhost .
However, I need to have it secured due to the requirement for .app domains, so I'm using greenlock-express to automate it.
Don't be frontin', yo! TLS SNI 'giphy.example.com' does not match 'Host:potatoes.example.com'
I've tried using the vhost example in the repo, but it doesn't look like server-static supports express apps.
Any tips on how to get this working? I keep hearing about reverse proxies, but I'm not sure if it's worth the effort as I don't even know if it would work - would it help?
server.js
#!/usr/bin/env node'use strict';// DEPENDENCIESconst express = require('express');const vhost = require('vhost');const path = require('path');const glx = require('greenlock-express');// MIDDLEWAREconst app = express();const giphyApp = require('../giphy-search');const potatoesApp = require('../rotten-potatoes');const portfolioApp = require('../falsepath.app');// ROUTESapp.use(vhost('giphy.example.com', giphyApp));app.use(vhost('potatoes.example.com', potatoesApp));app.use(portfolioApp);// GREENLOCK for HTTPSglx.create({ version: 'draft-11', server: 'https://acme-v02.api.letsencrypt.org/directory', email: 'falsepathOO@example.com', agreeTos: true, approveDomains: [ 'example.com', 'giphy.example.com', 'potatoes.example.com' ], configDir: '~/.config/acme/', app: app, communityMember: false}).listen(80, 443);