mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-18 00:55:50 +00:00
Some checks failed
CI Pipeline / prepare (push) Has been cancelled
Build and Push Multi-Arch Docker Image / build-and-push (push) Has been cancelled
Frontend Tests / test (push) Has been cancelled
CI Pipeline / docker (amd64, ubuntu-24.04) (push) Has been cancelled
CI Pipeline / docker (arm64, ubuntu-24.04-arm) (push) Has been cancelled
CI Pipeline / create-manifest (push) Has been cancelled
20 lines
518 B
JavaScript
20 lines
518 B
JavaScript
import { PROXY_SETTINGS_OPTIONS } from '../../../constants.js';
|
|
|
|
export const getProxySettingsFormInitialValues = () => {
|
|
return Object.keys(PROXY_SETTINGS_OPTIONS).reduce((acc, key) => {
|
|
acc[key] = '';
|
|
return acc;
|
|
}, {});
|
|
};
|
|
|
|
export const getProxySettingDefaults = () => {
|
|
return {
|
|
buffering_timeout: 15,
|
|
buffering_speed: 1.0,
|
|
redis_chunk_ttl: 60,
|
|
channel_shutdown_delay: 0,
|
|
channel_init_grace_period: 60,
|
|
channel_client_wait_period: 5,
|
|
new_client_behind_seconds: 5,
|
|
};
|
|
};
|