Disable signup page for self hosted instances

I’ve tried putting nginx conditions in place for the /join and /subscriptions urls, but somehow the users can still see this pages, when they click on the links to these pages.

    location ~ ^/(subscriptions|join)(.*) {
        return 403;
    }

Is there a way to disable new registrations via a config flag?

This works well:

    location ~ ^/(subscriptions|join)(.*) {
        return 403;
    }

    location /api/v3/register {
        return 403 'Registration Not Allowed';
    }

1 Like

That a great idea, and I understand why you need to disable the signup page.

but somehow the users can still see this pages

I think the users can see the page because the page is rendered on the client side using JavaScript.

    location /api/v3/register {
        return 403 'Registration Not Allowed';
    }

I like your solution. Probably this is more secure than simply disabling the sign up page, because people can always manually make API requests.

Let’s keep this conversation open for the time being.