Temporarily using root port as node port

This commit is contained in:
2026-02-14 16:47:34 +01:00
parent 1331e36177
commit 6fb54da4bf
4 changed files with 47 additions and 34 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ export async function getLiveNodes(): Promise<(NodeLiveData & Node)[]> {
nodes.map(async (node) => ({
...node,
liveData: await (
await axios.get(`http://${node.ip}:3000/api/status`, {
await axios.get(`http://${node.ip}:${process.env.PORT}/api/status`, {
headers: { Authorization: `ApiKey ${node.key}` },
})
).data.liveData,
@@ -38,7 +38,7 @@ export async function authNode(ip: string, key: string) {
if (await verifySession()) return;
const data = await (
await axios.get(`http://${ip}:3000/api/auth`, {
await axios.get(`http://${ip}:${process.env.PORT}/api/auth`, {
headers: { Authorization: `ApiKey ${key}` },
})
).data;