Version 0.2.1 Change the Port of the server

This commit is contained in:
Raphix
2023-08-22 17:48:58 +02:00
parent baa74459a1
commit 87dd1779a4
5 changed files with 7 additions and 7 deletions

View File

@ -46,7 +46,7 @@ module.exports.getDiscordUser = function (code, session) {
var link = "https://subsonics.raphix.fr"
if(process.env.DEV == "true") {
link = "http://localhost:3001"
link = "http://localhost:4000"
}
const params = new URLSearchParams();

View File

@ -26,7 +26,7 @@ function init() {
const app = express();
const port = normalizePort(process.env.PORT || '3001');
const port = normalizePort(process.env.PORT || '4000');
const server = require('http').createServer(app);
@ -152,7 +152,7 @@ function IOConnection(io) {
if(process.env.DEV == "true") {
alog.log("Mode Developpeur Actif : Redirige vers LOCALHOST")
discordlink = "https://discord.com/api/oauth2/authorize?client_id=1094727789682380922&redirect_uri=http%3A%2F%2Flocalhost%3A3001%2Finternal%2Fredirect&response_type=code&scope=identify%20guilds%20guilds.members.read" //DEV
discordlink = "https://discord.com/api/oauth2/authorize?client_id=1094727789682380922&redirect_uri=http%3A%2F%2Flocalhost%3A4000%2Finternal%2Fredirect&response_type=code&scope=identify%20guilds%20guilds.members.read" //DEV
} else {
discordlink = "https://discord.com/api/oauth2/authorize?client_id=1094727789682380922&redirect_uri=https%3A%2F%2Fsubsonics.raphix.fr%2Finternal%2Fredirect&response_type=code&scope=identify%20guilds%20guilds.members.read" //OFFICIEL
}

View File

@ -65,7 +65,7 @@ router.get("/socketlink", (req,res,next) => {
if(process.env.DEV == true) {
res.send("ws://localhost:3001")
res.send("ws://localhost:4000")
} else {
res.send("ws://subsonics.raphix.fr")
}