How to configure Gitea admin?

I want a Gitea instance for private development + an ability to invite other people to the server.

So I set settings.service.DISABLE_REGISTRATION = true;

But how do create my own user name and password?

Hi,

If you login as the first user, Gitea will create an user with admin rights. With the setting above you can create user accounts manually if you want to invite other persons. For more information see the gitea website.

But on a fresh install there’s no first user. That’s the whole problem.

IIRC that flag does not affect the cli, so a user can be created that way. Or enable registration, create the first user and disable it again.

I was hoping for a Nix way.