Merge pull request #708 from OpenSignLabs/staging

refactor: unnecessary code
This commit is contained in:
prafull-opensignlabs
2025-05-30 14:54:53 +00:00
parent 3d223ba343
commit b19fb29b82
41 changed files with 2589 additions and 555 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ app.use(express.urlencoded({ limit: '50mb', extended: true }));
app.use(function (req, res, next) {
req.headers['x-real-ip'] = getUserIP(req);
const publicUrl = 'https://' + req?.get('host');
req.headers['public_url'] = publicUrl; // process.env.PUBLIC_URL
req.headers['public_url'] = publicUrl;
next();
});
function getUserIP(request) {