mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-22 20:10:40 +03:00
Better host input
This commit is contained in:
parent
b048d6a685
commit
a1af3f2d4e
2 changed files with 2 additions and 2 deletions
|
@ -14,5 +14,5 @@
|
||||||
"windowMs": 60000
|
"windowMs": 60000
|
||||||
},
|
},
|
||||||
"discord_auth": false,
|
"discord_auth": false,
|
||||||
"host": "akf-forum.glitch.me"
|
"host": "https://akf-forum.glitch.me"
|
||||||
}
|
}
|
2
index.js
2
index.js
|
@ -54,5 +54,5 @@ const server = app.listen(port, () => console.log(`${forum_name}-forum on port:`
|
||||||
|
|
||||||
if (discord_auth) {
|
if (discord_auth) {
|
||||||
const { address } = server.address();
|
const { address } = server.address();
|
||||||
app.set("discord_auth", `https://discord.com/api/oauth2/authorize?client_id=${process.env.DISCORD_CLIENT}&redirect_uri=http%3A%2F%2F${host}%2Fdiscord_auth%2Fhash&response_type=token&scope=identify`);
|
app.set("discord_auth", `https://discord.com/api/oauth2/authorize?client_id=${process.env.DISCORD_CLIENT}&redirect_uri=${host}%2Fdiscord_auth%2Fhash&response_type=token&scope=identify`);
|
||||||
}
|
}
|
Loading…
Reference in a new issue