mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-23 01:54:55 +02:00
Merge pull request #695 from OpenSignLabs/login_to_sandbox
refactor: handle conditions of sandbox
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user