calcom / docker

The Docker configuration for Cal.com is an effort powered by people within the community. Cal.com, Inc. does not provide official support for Docker, but we will accept fixes and documentation. Use at your own risk.
MIT License
693 stars 367 forks source link

How does one disable signup? #191

Closed Julian-Hackenberg closed 1 year ago

Julian-Hackenberg commented 1 year ago

I can't find any documentation about this anywhere. Any help would be appreciated.

PeerRich commented 1 year ago

signup can currently only be disable by code by removing /signup.tsx file. there is no .env or database setting yet.

prononext commented 1 year ago

Removing the signup.tsx file does not work. Removing the signup.js file worked, but then also invites are not working....

@PeerRich Are there any plans to change that, so signup can be easily disabled and invites are still working?

prononext commented 1 year ago

@Julian-Hackenberg Analyzing the signup.tsx file there is one unpublished environment variable which is, when activated, redirecting the signup request to a Cal.com enterprise marketing page. So like this the signup is somehow disabled. The same page is also coming when inviting users.

This environment variable can be used to achive it: NEXT_PUBLIC_DISABLE_SIGNUP=true

@PeerRich would be nice to just let the invite functionality work, because there is a invite code sent with the request which can be a exeption. And also if there is already a environment variable, why do not just remove the "Dont have a account" on the login page when it is set?

krumware commented 1 year ago

Does this belong in calcom/docker or is this a core cal.com thing?

prononext commented 1 year ago

your right it is a docker issue I suppose.

bigbeka commented 1 year ago

Is there any update on this? NEXT_PUBLIC_DISABLE_SIGNUP=true redirecting to a custom URL would be helpful. Currently, it redirects the users to 'Missing Licence' page, which is not ideal.