From b58b6e729c1a4720b6f897edde6d6e26ae748d2f Mon Sep 17 00:00:00 2001 From: LukeGus Date: Mon, 28 Jul 2025 22:47:52 -0500 Subject: [PATCH] Update routes and homepage auth. --- docker/nginx.conf | 9 +++++++++ src/apps/Homepage/HomepageAuth.tsx | 13 ++++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/docker/nginx.conf b/docker/nginx.conf index 8f4757de..57913a0d 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -67,6 +67,15 @@ http { proxy_set_header X-Forwarded-Proto $scheme; } + location ~ ^/ssh/config_editor/(recent|pinned|shortcuts) { + proxy_pass http://127.0.0.1:8081; + proxy_http_version 1.1; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; diff --git a/src/apps/Homepage/HomepageAuth.tsx b/src/apps/Homepage/HomepageAuth.tsx index 711c554a..8b72dd89 100644 --- a/src/apps/Homepage/HomepageAuth.tsx +++ b/src/apps/Homepage/HomepageAuth.tsx @@ -146,9 +146,16 @@ export function HomepageAuth({ {firstUser && !dbError && !internalLoggedIn && ( First User - - You are the first user and will be made an admin. You can view admin settings in the sidebar - user dropdown. + + You are the first user and will be made an admin. You can view admin settings in the sidebar user dropdown. If you think this is a mistake, check the docker logs, or create a{" "} + + GitHub issue + . )}