소스 검색

update readme

Milo Schwartz 7 달 전
부모
커밋
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 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 { 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("/");
     }