Show routes, TLS certs, and port-forwarding on services page

- Add Routes model to services UI (paths, headers, IP whitelisting per route)
- Show TLS cert info per service with inline provision/renew actions
- Remove TLS Certificates section from dashboard (now on services page)
- Make gateway router port list dynamic from config + VPN state
- Add TODO for header validation in HAProxy config generation
This commit is contained in:
2026-07-10 06:10:40 +00:00
parent e78a1d548a
commit 68d6fde80d
9 changed files with 570 additions and 1072 deletions

View File

@@ -2,6 +2,22 @@ import { apiClient } from './client';
// Services
export interface HeaderConfig {
request?: Record<string, string>;
response?: Record<string, string>;
}
export interface Route {
paths?: string[];
backend: {
address: string;
type: string;
health?: string;
};
headers?: HeaderConfig;
ipAllow?: string[];
}
export interface RegisteredService {
domain: string;
source: string;
@@ -13,6 +29,7 @@ export interface RegisteredService {
};
public: boolean;
tls?: string;
routes?: Route[];
}
export const servicesApi = {