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("/"); }