mirror of
https://github.com/filecoffee/filehost.git
synced 2024-11-13 19:49:56 +01:00
default https
This commit is contained in:
parent
95587b94a7
commit
26534377bb
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ if (storageMode === "local") {
|
|||
const uploadFile = (req, res) => {
|
||||
storageEngine.writeFile(req, res, () => {
|
||||
const fileHostDomain =
|
||||
process.env.FILEHOST_DOMAIN || `${req.protocol}://${req.get("host")}`;
|
||||
process.env.FILEHOST_DOMAIN || `https://${req.get("host")}`;
|
||||
res.status(200).json({
|
||||
message: "File uploaded successfully",
|
||||
url: `${fileHostDomain}/u/${req.filePath}`,
|
||||
|
|
Loading…
Reference in a new issue