Skip to content

Commit

Permalink
Purge everything by default in 7 days
Browse files Browse the repository at this point in the history
  • Loading branch information
KomelT committed Sep 3, 2024
1 parent 4df3c5d commit 47ca599
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions mqtt/src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,40 +13,40 @@ export const MQTT_CLIENT_ID: string =
export const MQTT_TOPIC: string = process.env.MQTT_TOPIC || "si/#";

export const PURGE_INTERVAL_SECONDS: number = Number.parseInt(
process.env.PURGE_INTERVAL_SECONDS || "0"
process.env.PURGE_INTERVAL_SECONDS || "86400"
);
export const PURGE_DEVICE_METRICS_AFTER_SECONDS: number = Number.parseInt(
process.env.PURGE_DEVICE_METRICS_AFTER_SECONDS || "0"
process.env.PURGE_DEVICE_METRICS_AFTER_SECONDS || "604800"
);
export const PURGE_ENVIROMENT_METRICS_AFTER_SECONDS: number = Number.parseInt(
process.env.PURGE_ENVIROMENT_METRICS_AFTER_SECONDS || "0"
process.env.PURGE_ENVIROMENT_METRICS_AFTER_SECONDS || "604800"
);
export const PURGE_POWER_METRICS_AFTER_SECONDS: number = Number.parseInt(
process.env.PURGE_POWER_METRICS_AFTER_SECONDS || "0"
process.env.PURGE_POWER_METRICS_AFTER_SECONDS || "604800"
);
export const PURGE_MAP_REPORTS_AFTER_SECONDS: number = Number.parseInt(
process.env.PURGE_MAP_REPORTS_AFTER_SECONDS || "0"
process.env.PURGE_MAP_REPORTS_AFTER_SECONDS || "604800"
);
export const PURGE_NEIGHBOUR_INFOS_AFTER_SECONDS: number = Number.parseInt(
process.env.PURGE_NEIGHBOUR_INFOS_AFTER_SECONDS || "0"
process.env.PURGE_NEIGHBOUR_INFOS_AFTER_SECONDS || "604800"
);
export const PURGE_UNHEARD_NODES_FOR_SECONDS: number = Number.parseInt(
process.env.PURGE_UNHEARD_NODES_FOR_SECONDS || "0"
process.env.PURGE_UNHEARD_NODES_FOR_SECONDS || "604800"
);
export const PURGE_POSITIONS_AFTER_SECONDS: number = Number.parseInt(
process.env.PURGE_POSITIONS_AFTER_SECONDS || "0"
process.env.PURGE_POSITIONS_AFTER_SECONDS || "604800"
);
export const PURGE_SERVICE_ENVELOPES_AFTER_SECONDS: number = Number.parseInt(
process.env.PURGE_SERVICE_ENVELOPES_AFTER_SECONDS || "0"
process.env.PURGE_SERVICE_ENVELOPES_AFTER_SECONDS || "604800"
);
export const PURGE_TEXT_MESSAGES_AFTER_SECONDS: number = Number.parseInt(
process.env.PURGE_TEXT_MESSAGES_AFTER_SECONDS || "0"
process.env.PURGE_TEXT_MESSAGES_AFTER_SECONDS || "604800"
);
export const PURGE_TRACEROUTES_AFTER_SECONDS: number = Number.parseInt(
process.env.PURGE_TRACEROUTES_AFTER_SECONDS || "0"
process.env.PURGE_TRACEROUTES_AFTER_SECONDS || "604800"
);
export const PURGE_WAYPOINTS_AFTER_SECONDS: number = Number.parseInt(
process.env.PURGE_WAYPOINTS_AFTER_SECONDS || "0"
process.env.PURGE_WAYPOINTS_AFTER_SECONDS || "604800"
);

export const COLLECT_SERVICE_ENVELOPES: boolean =
Expand Down

0 comments on commit 47ca599

Please sign in to comment.