Files
flood/config.d.ts
Jesse Chan aa0c7cf3db server: add torrentClientPollIntervalIdle to adjust polling when idle
Some automations like notification of download completion rely on
polling of torrent list. Plus, in the future, we might add more
automation capabilities such as "Pause after reaching certain ratio".

As such, don't completely stop polling when idle. Instead, add a config
"torrentClientPollIntervalIdle" to adjust the interval. The default is
(1000 * 60 * 15) ms aka 15 minutes that should allow low resources
consumption and ensure the automations like logging of download completion
time can work within reasonable error margin.

Fixes: 8452d51b79
Bug: #45, Flood-UI/flood#405
2020-10-24 00:53:01 +08:00

27 lines
650 B
TypeScript

import type {ClientConnectionSettings} from '@shared/schema/ClientConnectionSettings';
declare const CONFIG: {
baseURI: string;
dbCleanInterval: number;
dbPath: string;
tempPath: string;
disableUsersAndAuth: boolean;
configUser: ClientConnectionSettings;
floodServerHost: string;
floodServerPort: number;
floodServerProxy: string;
maxHistoryStates: number;
torrentClientPollInterval: number;
torrentClientPollIntervalIdle: number;
secret: string;
ssl: boolean;
sslKey: string;
sslCert: string;
diskUsageService: {
watchMountPoints: Array<string>;
};
allowedPaths: Array<string> | null;
};
export = CONFIG;