feat: add custom locations management to ProxyHostForm

- Updated ProxyHostForm to include functionality for managing custom locations.
- Introduced add, remove, and update operations for locations in the form.
- Modified the ProxyHost interface to include an array of locations.
- Removed the advanced configuration textarea in favor of a more structured location input.
- Updated the frontend assets in index.html to reflect the latest build.
This commit is contained in:
Wikid82
2025-11-19 11:46:26 -05:00
parent d559a24c45
commit 90ba956d97
21 changed files with 362 additions and 233 deletions

View File

@@ -1,6 +1,14 @@
import { useState, useEffect } from 'react'
import { proxyHostsAPI } from '../services/api'
export interface Location {
uuid?: string
path: string
forward_scheme: string
forward_host: string
forward_port: number
}
export interface ProxyHost {
uuid: string
domain_names: string
@@ -15,7 +23,7 @@ export interface ProxyHost {
hsts_subdomains: boolean
block_exploits: boolean
websocket_support: boolean
advanced_config?: string
locations: Location[]
enabled: boolean
created_at: string
updated_at: string