mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-08 13:05:17 +00:00
feat(settings): add query to retrieve Dokploy cloud IPs
- Implemented a new admin procedure to fetch cloud IPs from environment variables. - Returns an empty array if not in cloud mode.
This commit is contained in:
@@ -837,6 +837,14 @@ export const settingsRouter = createTRPCRouter({
|
|||||||
getLogCleanupStatus: adminProcedure.query(async () => {
|
getLogCleanupStatus: adminProcedure.query(async () => {
|
||||||
return getLogCleanupStatus();
|
return getLogCleanupStatus();
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
getDokployCloudIps: adminProcedure.query(async () => {
|
||||||
|
if (!IS_CLOUD) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
const ips = process.env.DOKPLOY_CLOUD_IPS?.split(",");
|
||||||
|
return ips;
|
||||||
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
export const getTraefikPorts = async (serverId?: string) => {
|
export const getTraefikPorts = async (serverId?: string) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user