diff --git a/src/components/Settings/SettingsJobsCache/index.tsx b/src/components/Settings/SettingsJobsCache/index.tsx index 7812d54e..5fa356e0 100644 --- a/src/components/Settings/SettingsJobsCache/index.tsx +++ b/src/components/Settings/SettingsJobsCache/index.tsx @@ -69,6 +69,7 @@ const messages: { [messageName: string]: MessageDescriptor } = defineMessages( dnsCacheGlobalStats: 'Global DNS Cache Stats', dnsCacheGlobalStatsDescription: 'These stats are aggregated across all DNS cache entries.', + dnsNoCacheEntries: 'No DNS lookups have been cached yet.', size: 'Size', hits: 'Hits', misses: 'Misses', @@ -611,91 +612,133 @@ const SettingsJobs = () => { -
- {intl.formatMessage(messages.dnsCacheDescription)} -
-- {intl.formatMessage(messages.dnsCacheGlobalStatsDescription)} -
-+ {intl.formatMessage(messages.dnsCacheGlobalStatsDescription)} +
+diff --git a/src/components/Settings/SettingsNetwork/index.tsx b/src/components/Settings/SettingsNetwork/index.tsx index c8f07eee..21dc6a00 100644 --- a/src/components/Settings/SettingsNetwork/index.tsx +++ b/src/components/Settings/SettingsNetwork/index.tsx @@ -29,6 +29,8 @@ const messages = defineMessages('components.Settings.SettingsNetwork', { trustProxyTip: 'Allow Seerr to correctly register client IP addresses behind a proxy', proxyEnabled: 'HTTP(S) Proxy', + proxyEnabledTip: + 'Send ALL outgoing HTTP/HTTPS requests through a proxy server (host/port). Does NOT enable HTTPS, SSL, or certificate configuration.', proxyHostname: 'Proxy Hostname', proxyPort: 'Proxy Port', proxySsl: 'Use SSL For Proxy', @@ -78,13 +80,16 @@ const SettingsNetwork = () => { then: Yup.number() .typeError(intl.formatMessage(messages.validationDnsCacheMaxTtl)) .required(intl.formatMessage(messages.validationDnsCacheMaxTtl)) - .min(0), + .min(-1), }), proxyPort: Yup.number().when('proxyEnabled', { is: (proxyEnabled: boolean) => proxyEnabled, - then: Yup.number().required( - intl.formatMessage(messages.validationProxyPort) - ), + then: Yup.number() + .typeError(intl.formatMessage(messages.validationProxyPort)) + .integer(intl.formatMessage(messages.validationProxyPort)) + .min(1, intl.formatMessage(messages.validationProxyPort)) + .max(65535, intl.formatMessage(messages.validationProxyPort)) + .required(intl.formatMessage(messages.validationProxyPort)), }), }); @@ -288,50 +293,50 @@ const SettingsNetwork = () => {