Skip to content

If I am not allowed to register when I am self-hosting and deploying, how can I create my first account? #204

@fre2d0m

Description

@fre2d0m

As the title says, my .env file is configured as follows:

NODE_ENV="production"
NEXT_PUBLIC_SELF_HOSTED="true"
GEO_IP_HOST="http://op-geo:8080"
BATCH_SIZE="5000"
BATCH_INTERVAL="10000"
ALLOW_REGISTRATION="false"
ALLOW_INVITATION="true"

So how can I get the first account?

I set the dashboard to port 49001 and the api to port 49000. When registering the dashboard, the following interface error 404 (after reverse proxy) occurs, but the local request is 403 error.

[root@iZbp16t01erjm1qy0v0vmuZ self-hosting]# curl -X POST -v 'http://localhost:49001/api/trpc/auth.signUpEmail'
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 49001 (#0)
> POST /api/trpc/auth.signUpEmail HTTP/1.1
> Host: localhost:49001
> User-Agent: curl/7.61.1
> Accept: */*
> 
< HTTP/1.1 403 Forbidden
< Date: Sat, 27 Sep 2025 08:28:13 GMT
< Connection: keep-alive
< Keep-Alive: timeout=5
< Transfer-Encoding: chunked

To be honest, I'm confused by self-hosting. Is it that other people haven't encountered such problems, or am I stupid?

I tried to set ALLOW_REGISTRATION = true or false, it's all the above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions