From 08a2923cfc9e613b592d25661cec5bf938173721 Mon Sep 17 00:00:00 2001 From: Owen Date: Sun, 31 May 2026 17:30:31 -0700 Subject: [PATCH] Move proxy and client to public and private --- next.config.ts | 16 ++++++- src/app/[orgId]/settings/logs/access/page.tsx | 4 +- .../[orgId]/settings/logs/connection/page.tsx | 2 +- .../[orgId]/settings/logs/request/page.tsx | 4 +- src/app/[orgId]/settings/resources/page.tsx | 2 +- .../resources/{client => private}/page.tsx | 4 +- .../ProxyResourceTargetsForm.tsx | 0 .../[niceId]/authentication/page.tsx | 0 .../[niceId]/general/page.tsx | 2 +- .../{proxy => public}/[niceId]/http/page.tsx | 46 +------------------ .../{proxy => public}/[niceId]/layout.tsx | 8 ++-- .../{proxy => public}/[niceId]/page.tsx | 2 +- .../{proxy => public}/[niceId]/rdp/page.tsx | 0 .../{proxy => public}/[niceId]/rules/page.tsx | 0 .../{proxy => public}/[niceId]/ssh/page.tsx | 0 .../{proxy => public}/[niceId]/vnc/page.tsx | 0 .../{proxy => public}/create/layout.tsx | 0 .../{proxy => public}/create/page.tsx | 10 ++-- .../resources/{proxy => public}/page.tsx | 0 src/app/navigation.tsx | 4 +- src/components/HealthChecksTable.tsx | 4 +- src/components/ProxyResourcesTable.tsx | 8 ++-- src/components/ShareLinksTable.tsx | 6 +-- src/components/SiteResourcesOverview.tsx | 8 ++-- src/components/SitesTable.tsx | 4 +- 25 files changed, 53 insertions(+), 81 deletions(-) rename src/app/[orgId]/settings/resources/{client => private}/page.tsx (97%) rename src/app/[orgId]/settings/resources/{proxy => public}/ProxyResourceTargetsForm.tsx (100%) rename src/app/[orgId]/settings/resources/{proxy => public}/[niceId]/authentication/page.tsx (100%) rename src/app/[orgId]/settings/resources/{proxy => public}/[niceId]/general/page.tsx (99%) rename src/app/[orgId]/settings/resources/{proxy => public}/[niceId]/http/page.tsx (95%) rename src/app/[orgId]/settings/resources/{proxy => public}/[niceId]/layout.tsx (92%) rename src/app/[orgId]/settings/resources/{proxy => public}/[niceId]/page.tsx (80%) rename src/app/[orgId]/settings/resources/{proxy => public}/[niceId]/rdp/page.tsx (100%) rename src/app/[orgId]/settings/resources/{proxy => public}/[niceId]/rules/page.tsx (100%) rename src/app/[orgId]/settings/resources/{proxy => public}/[niceId]/ssh/page.tsx (100%) rename src/app/[orgId]/settings/resources/{proxy => public}/[niceId]/vnc/page.tsx (100%) rename src/app/[orgId]/settings/resources/{proxy => public}/create/layout.tsx (100%) rename src/app/[orgId]/settings/resources/{proxy => public}/create/page.tsx (99%) rename src/app/[orgId]/settings/resources/{proxy => public}/page.tsx (100%) diff --git a/next.config.ts b/next.config.ts index 9d8aa9583..0c3738433 100644 --- a/next.config.ts +++ b/next.config.ts @@ -22,7 +22,21 @@ const nextConfig: NextConfig = { reactCompiler: true, transpilePackages: ["@novnc/novnc"], output: "standalone", - allowedDevOrigins + allowedDevOrigins, + async redirects() { + return [ + { + source: "/:orgId/settings/resources/proxy/:path*", + destination: "/:orgId/settings/resources/public/:path*", + permanent: true + }, + { + source: "/:orgId/settings/resources/client/:path*", + destination: "/:orgId/settings/resources/private/:path*", + permanent: true + } + ]; + } }; export default withNextIntl(nextConfig); diff --git a/src/app/[orgId]/settings/logs/access/page.tsx b/src/app/[orgId]/settings/logs/access/page.tsx index 267ad8556..a6cb87fc8 100644 --- a/src/app/[orgId]/settings/logs/access/page.tsx +++ b/src/app/[orgId]/settings/logs/access/page.tsx @@ -343,8 +343,8 @@ export default function GeneralPage() {