use only port 8080 in the new version

This commit is contained in:
Andras Bacsai
2024-12-17 11:30:36 +01:00
parent 02976e454a
commit b1759bf25d

View File

@@ -33,22 +33,12 @@ const verifyClient = async (info, callback) => {
try { try {
// Authenticate with Laravel backend // Authenticate with Laravel backend
let response; const response = await axios.post(`http://coolify:8080/terminal/auth`, null, {
try {
response = await axios.post(`http://coolify:8080/terminal/auth`, null, {
headers: { headers: {
'Cookie': `${sessionCookieName}=${laravelSession}`, 'Cookie': `${sessionCookieName}=${laravelSession}`,
'X-XSRF-TOKEN': xsrfToken 'X-XSRF-TOKEN': xsrfToken
}, },
}); });
} catch (error) {
response = await axios.post(`http://coolify/terminal/auth`, null, {
headers: {
'Cookie': `${sessionCookieName}=${laravelSession}`,
'X-XSRF-TOKEN': xsrfToken
},
});
}
if (response.status === 200) { if (response.status === 200) {
// Authentication successful // Authentication successful