From b67cd47141e30f586d49926f28323776e7e71e9b Mon Sep 17 00:00:00 2001 From: Milo Schwartz Date: Sat, 4 Jan 2025 20:59:59 -0500 Subject: [PATCH] update readme --- README.md | 4 ---- src/app/auth/signup/page.tsx | 5 ++++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fdb3b32d..675f5f93 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,3 @@ -

- Pangolin -

- # Pangolin Pangolin is a self-hosted tunneled reverse proxy management server with identity and access management, designed to securely expose private resources through use with the Traefik reverse proxy and WireGuard tunnel clients like Newt. With Pangolin, you retain full control over your infrastructure while providing a user-friendly and feature-rich solution for managing proxies, authentication, and access, and simplifying complex network setups, all with a clean and simple UI. diff --git a/src/app/auth/signup/page.tsx b/src/app/auth/signup/page.tsx index e3e8fe98..f53ff2c8 100644 --- a/src/app/auth/signup/page.tsx +++ b/src/app/auth/signup/page.tsx @@ -1,5 +1,6 @@ import SignupForm from "@app/app/auth/signup/SignupForm"; import { verifySession } from "@app/lib/auth/verifySession"; +import { pullEnv } from "@app/lib/pullEnv"; import { Mail } from "lucide-react"; import Link from "next/link"; import { redirect } from "next/navigation"; @@ -14,9 +15,11 @@ export default async function Page(props: { const getUser = cache(verifySession); const user = await getUser(); + const env = pullEnv(); + const isInvite = searchParams?.redirect?.includes("/invite"); - if (process.env.DISABLE_SIGNUP_WITHOUT_INVITE === "true" && !isInvite) { + if (env.flags.disableSignupWithoutInvite && !isInvite) { redirect("/"); }