From 85fb8e51d8755ca08d50ed324cbe53d844a5d873 Mon Sep 17 00:00:00 2001 From: dbauszus-glx Date: Wed, 6 Mar 2024 17:03:35 +0000 Subject: [PATCH] https host --- mod/utils/reqHost.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/utils/reqHost.js b/mod/utils/reqHost.js index 34e465333b..5415b53650 100644 --- a/mod/utils/reqHost.js +++ b/mod/utils/reqHost.js @@ -9,7 +9,7 @@ module.exports = req => { host = `http://${process.env.ALIAS||req.headers.host}${process.env.DIR}` } else if (req.headers.host) { - host = `http://${process.env.ALIAS||req.headers.host}${process.env.DIR}` + host = `https://${process.env.ALIAS||req.headers.host}${process.env.DIR}` } else if (req.headers.referer) { host = new URL(req.headers.referer).origin