diff --git a/apps/dokploy/LICENSE.MD b/apps/dokploy/LICENSE.MD index 9031c94b..59e9d822 100644 --- a/apps/dokploy/LICENSE.MD +++ b/apps/dokploy/LICENSE.MD @@ -17,10 +17,10 @@ See the License for the specific language governing permissions and limitations ## Additional Terms for Specific Features -The following additional terms apply to the multi-node support and Docker Compose file support features of Dokploy. In the event of a conflict, these provisions shall take precedence over those in the Apache License: +The following additional terms apply to the multi-node support, Docker Compose file and Multi Server features of Dokploy. In the event of a conflict, these provisions shall take precedence over those in the Apache License: -- **Self-Hosted Version Free**: All features of Dokploy, including multi-node support and Docker Compose file support, will always be free to use in the self-hosted version. -- **Restriction on Resale**: The multi-node support and Docker Compose file support features cannot be sold or offered as a service by any party other than the copyright holder without prior written consent. -- **Modification Distribution**: Any modifications to the multi-node support and Docker Compose file support features must be distributed freely and cannot be sold or offered as a service. +- **Self-Hosted Version Free**: All features of Dokploy, including multi-node support, Docker Compose file support and Multi Server, will always be free to use in the self-hosted version. +- **Restriction on Resale**: The multi-node support, Docker Compose file support and Multi Server features cannot be sold or offered as a service by any party other than the copyright holder without prior written consent. +- **Modification Distribution**: Any modifications to the multi-node support, Docker Compose file support and Multi Server features must be distributed freely and cannot be sold or offered as a service. For further inquiries or permissions, please contact us directly. diff --git a/apps/dokploy/pages/register.tsx b/apps/dokploy/pages/register.tsx index e7b004ed..57502ce1 100644 --- a/apps/dokploy/pages/register.tsx +++ b/apps/dokploy/pages/register.tsx @@ -16,7 +16,7 @@ import { } from "@/components/ui/form"; import { Input } from "@/components/ui/input"; import { isAdminPresent } from "@/server/api/services/admin"; -import { IS_CLOUD } from "@/server/constants"; +// import { IS_CLOUD } from "@/server/constants"; import { api } from "@/utils/api"; import { zodResolver } from "@hookform/resolvers/zod"; import { AlertTriangle } from "lucide-react"; @@ -221,11 +221,11 @@ const Register = ({ hasAdmin }: Props) => { export default Register; export async function getServerSideProps() { - if (IS_CLOUD) { - return { - props: {}, - }; - } + // if (IS_CLOUD) { + // return { + // props: {}, + // }; + // } const hasAdmin = await isAdminPresent(); if (hasAdmin) { diff --git a/apps/dokploy/server/api/routers/auth.ts b/apps/dokploy/server/api/routers/auth.ts index 7cee0724..2d564f72 100644 --- a/apps/dokploy/server/api/routers/auth.ts +++ b/apps/dokploy/server/api/routers/auth.ts @@ -1,6 +1,6 @@ import { lucia, validateRequest } from "@/server/auth/auth"; import { luciaToken } from "@/server/auth/token"; -import { IS_CLOUD } from "@/server/constants"; +// import { IS_CLOUD } from "@/server/constants"; import { apiCreateAdmin, apiCreateUser, @@ -36,15 +36,15 @@ export const authRouter = createTRPCRouter({ .input(apiCreateAdmin) .mutation(async ({ ctx, input }) => { try { - if (!IS_CLOUD) { - const admin = await db.query.admins.findFirst({}); - if (admin) { - throw new TRPCError({ - code: "BAD_REQUEST", - message: "Admin already exists", - }); - } + // if (!IS_CLOUD) { + const admin = await db.query.admins.findFirst({}); + if (admin) { + throw new TRPCError({ + code: "BAD_REQUEST", + message: "Admin already exists", + }); } + // } const newAdmin = await createAdmin(input); const session = await lucia.createSession(newAdmin.id || "", {});