mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-07 12:32:16 +00:00
refactor(access-log): consolidate web server settings imports and enhance log cleanup status retrieval
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
import { paths } from "@dokploy/server/constants";
|
import { paths } from "@dokploy/server/constants";
|
||||||
import { updateWebServerSettings } from "@dokploy/server/services/web-server-settings";
|
import {
|
||||||
|
getWebServerSettings,
|
||||||
|
updateWebServerSettings,
|
||||||
|
} from "@dokploy/server/services/web-server-settings";
|
||||||
import { scheduledJobs, scheduleJob } from "node-schedule";
|
import { scheduledJobs, scheduleJob } from "node-schedule";
|
||||||
import { execAsync } from "../process/execAsync";
|
import { execAsync } from "../process/execAsync";
|
||||||
|
|
||||||
@@ -58,8 +61,6 @@ export const stopLogCleanup = async (): Promise<boolean> => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
import { getWebServerSettings } from "@dokploy/server/services/web-server-settings";
|
|
||||||
|
|
||||||
export const getLogCleanupStatus = async (): Promise<{
|
export const getLogCleanupStatus = async (): Promise<{
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
cronExpression: string | null;
|
cronExpression: string | null;
|
||||||
|
|||||||
Reference in New Issue
Block a user