Add preferredd hostname env var
This commit is contained in:
parent
b769a5d6b9
commit
8c64e88200
@ -6,7 +6,8 @@ module.exports = {
|
||||
"log_file": "qonq.log",
|
||||
"env": {
|
||||
"NODE_ENV": "production",
|
||||
"ADDRESS": "127.0.0.1"
|
||||
"ADDRESS": "127.0.0.1",
|
||||
"PREFERRED_HOST": "owo69.me"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
2
qonq.js
2
qonq.js
@ -37,7 +37,7 @@ app.post("/upload", (req, res, next) => {
|
||||
} catch(e) {
|
||||
return next(e);
|
||||
}
|
||||
res.send(`${req.protocol}://${filecode}.${req.headers.host}`);
|
||||
res.send(`${req.protocol}://${filecode}.${process.env.PREFERRED_HOST||req.headers.host}`);
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user