feat: add forward authentication configuration and UI

- Introduced ForwardAuthConfig model to store global forward authentication settings.
- Updated Manager to fetch and apply forward authentication configuration.
- Added ForwardAuthHandler to create a reverse proxy handler for authentication.
- Enhanced ProxyHost model to include forward authentication options.
- Created Security page and ForwardAuthSettings component for managing authentication settings.
- Implemented API endpoints for fetching and updating forward authentication configuration.
- Added tests for new functionality including validation and error handling.
- Updated frontend components to support forward authentication settings.
This commit is contained in:
Wikid82
2025-11-25 13:25:05 +00:00
parent 6f82659d14
commit 7a1f577771
31 changed files with 972 additions and 44 deletions
+16
View File
@@ -0,0 +1,16 @@
import ForwardAuthSettings from '../components/ForwardAuthSettings';
export default function Security() {
return (
<div className="space-y-6">
<div>
<h1 className="text-2xl font-bold text-gray-900 dark:text-white">Security</h1>
<p className="mt-1 text-sm text-gray-500 dark:text-gray-400">
Manage security settings and authentication providers.
</p>
</div>
<ForwardAuthSettings />
</div>
);
}
+1 -1
View File
@@ -90,7 +90,7 @@ const Uptime: React.FC = () => {
// Sort monitors alphabetically by name
const sortedMonitors = useMemo(() => {
if (!monitors) return [];
return [...monitors].sort((a, b) =>
return [...monitors].sort((a, b) =>
(a.name || '').toLowerCase().localeCompare((b.name || '').toLowerCase())
);
}, [monitors]);