Set domain manually

This commit is contained in:
bingus_violet 2024-07-13 06:03:56 -05:00
parent fe0e222417
commit def1d190c9
2 changed files with 3 additions and 2 deletions

View file

@ -1,4 +1,5 @@
{
"trust": [],
"blacklist": []
"blacklist": [],
"domain": "url.viois.gay"
}

View file

@ -62,7 +62,7 @@ app.get("/makeURL", (req, res) => {
"url": url
})
writep(`Done! Find your URL at: <a href="/url/${shortURL.shortCode}">${req.hostname + "/url/" + shortURL.shortCode}</a>`)
writep(`Done! Find your URL at: <a href="https://${fileHandler.config.domain}/url/${shortURL.shortCode}">${fileHandler.config.domain + "/url/" + shortURL.shortCode}</a>`)
finishHtml()
})