浏览代码

update readme

Milo Schwartz 5 月之前
父节点
当前提交
b67cd47141
共有 2 个文件被更改,包括 4 次插入5 次删除
  1. 0 4
      README.md
  2. 4 1
      src/app/auth/signup/page.tsx

+ 0 - 4
README.md

@@ -1,7 +1,3 @@
-<p align="center">
-    <img src="public/logo/pangolin_orange.svg" alt="Pangolin" style="margin: 10px 0; width: 200px;">
-</p>
-
 # 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.
 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.

+ 4 - 1
src/app/auth/signup/page.tsx

@@ -1,5 +1,6 @@
 import SignupForm from "@app/app/auth/signup/SignupForm";
 import SignupForm from "@app/app/auth/signup/SignupForm";
 import { verifySession } from "@app/lib/auth/verifySession";
 import { verifySession } from "@app/lib/auth/verifySession";
+import { pullEnv } from "@app/lib/pullEnv";
 import { Mail } from "lucide-react";
 import { Mail } from "lucide-react";
 import Link from "next/link";
 import Link from "next/link";
 import { redirect } from "next/navigation";
 import { redirect } from "next/navigation";
@@ -14,9 +15,11 @@ export default async function Page(props: {
     const getUser = cache(verifySession);
     const getUser = cache(verifySession);
     const user = await getUser();
     const user = await getUser();
 
 
+    const env = pullEnv();
+
     const isInvite = searchParams?.redirect?.includes("/invite");
     const isInvite = searchParams?.redirect?.includes("/invite");
 
 
-    if (process.env.DISABLE_SIGNUP_WITHOUT_INVITE === "true" && !isInvite) {
+    if (env.flags.disableSignupWithoutInvite && !isInvite) {
         redirect("/");
         redirect("/");
     }
     }