Merge pull request #1700 from OpenSignLabs/updates-14666117248

fix: return https protocol for signing urls
This commit is contained in:
prafull-opensignlabs
2025-04-25 19:17:21 +05:30
committed by GitHub
+1 -1
View File
@@ -160,7 +160,7 @@ app.use(express.json({ limit: '50mb' }));
app.use(express.urlencoded({ limit: '50mb', extended: true }));
app.use(function (req, res, next) {
req.headers['x-real-ip'] = getUserIP(req);
const publicUrl = req?.protocol + '://' + req?.get('host');
const publicUrl = 'https://' + req?.get('host');
req.headers['public_url'] = publicUrl; // process.env.PUBLIC_URL
next();
});