Skip to content

The first account

On a fresh installation the site asks you to create the first account. That account is an admin: it can add other people later. How you get to that page depends on TRUSTED_NETWORKS.

With a home network (TRUSTED_NETWORKS set)

Section titled “With a home network (TRUSTED_NETWORKS set)”

Open the site from a computer on that network, directly on its own address (http://<server>:8085, not through a reverse proxy). The setup page appears; choose a user name and a password of at least 10 characters.

From the home network you never need to log in; the account is for using the site away from home.

Then anyone who reaches the site could open the setup page, so it asks for a setup code as well. The code is printed in the container log when the site starts:

Terminal window
docker logs 3mf-library | grep "setup code"
No account yet. Open /setup and use this setup code to create the first (admin) account: K7MQ-2XWD

Only someone who can read the server’s log has it. Upper or lower case and the dash don’t matter.

The setup page asking for the setup code, a user name and a password

The first account can’t be created through a reverse proxy, even with a setup code. Open the site directly once, then use the proxy for everything else.

If you forgot the only admin’s password: stop the container, delete data/users.db, start it again and set up a new first account. This removes all accounts and favourites, but not the index or the previews. See Accounts and users for everything else.