diff --git a/pass/app.js b/pass/app.js index aa5072d6a3b166706576e0c7b9bf7e404971c247..abf8b7bd32a70270cbf1252dfef82aa0bb3af17a 100644 --- a/pass/app.js +++ b/pass/app.js @@ -105,13 +105,13 @@ app.use((req, res, next) => { if ( allowed_hosts.includes(req.hostname) || (process.env.NODE_ENV === "development" && - req.hostname.match(/^(localhost|.*\.ngrok\.io|.*\.review\.metager\.de)$/)) + req.hostname.match(/^(localhost|.*\.ngrok-free\.app|.*\.review\.metager\.de)$/)) ) { let proto = req.get("x-forwarded-proto") ?? req.protocol; let host = req.get("x-forwarded-host") ?? req.get("host"); let port = req.get("x-forwarded-port"); - if (host.match(/^.*\.ngrok\.io$/)) { + if (host.match(/^.*\.ngrok-free\.app$/)) { proto = "https"; port = undefined; }