Skip to content

Commit 6b0d924

Browse files
committed
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.
1 parent 2a89be6 commit 6b0d924

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

apps/dokploy/server/api/routers/settings.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,14 @@ export const settingsRouter = createTRPCRouter({
837837
getLogCleanupStatus: adminProcedure.query(async () => {
838838
return getLogCleanupStatus();
839839
}),
840+
841+
getDokployCloudIps: adminProcedure.query(async () => {
842+
if (!IS_CLOUD) {
843+
return [];
844+
}
845+
const ips = process.env.DOKPLOY_CLOUD_IPS?.split(",");
846+
return ips;
847+
}),
840848
});
841849

842850
export const getTraefikPorts = async (serverId?: string) => {

0 commit comments

Comments
 (0)