WIP: Notifications and application usage
This commit is contained in:
@@ -27,7 +27,7 @@ export const get: RequestHandler = async (event) => {
|
||||
services: {
|
||||
[id]: {
|
||||
loadbalancer: {
|
||||
servers: []
|
||||
servers: [{ address: `${id}:${privatePort}` }]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -49,7 +49,7 @@ export const get: RequestHandler = async (event) => {
|
||||
services: {
|
||||
[id]: {
|
||||
loadbalancer: {
|
||||
servers: []
|
||||
servers: [{ url: `http://${id}:${privatePort}` }]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -58,11 +58,6 @@ export const get: RequestHandler = async (event) => {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (type === 'tcp') {
|
||||
traefik[type].services[id].loadbalancer.servers.push({ address: `${id}:${privatePort}` });
|
||||
} else if (type === 'http') {
|
||||
traefik[type].services[id].loadbalancer.servers.push({ url: `http://${id}:${privatePort}` });
|
||||
}
|
||||
return {
|
||||
status: 200,
|
||||
body: {
|
||||
|
||||
Reference in New Issue
Block a user