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

@@ -3,7 +3,6 @@ package v1
import (
"encoding/json"
"net/http"
"path/filepath"
)
type cloudflareZone struct {
@@ -71,8 +70,7 @@ func (api *API) CloudflareSetZoneID(w http.ResponseWriter, r *http.Request) {
return
}
secretsPath := filepath.Join(api.dataDir, "secrets.yaml")
if err := api.secrets.SetSecret(secretsPath, "cloudflare.zoneId", req.ZoneID); err != nil {
if err := api.secrets.SetSecret("cloudflare.zoneId", req.ZoneID); err != nil {
respondError(w, http.StatusInternalServerError, "Failed to save zone ID")
return
}