Administering your custom server
You can use Ente's CLI to administer your self hosted server.
First we need to get your CLI to connect to your custom server. Define a config.yaml and put it either in the same directory as CLI or path defined in env variable ENTE_CLI_CONFIG_PATH
endpoint:
api: "http://localhost:8080"
Now you should be able to add an account, and subsequently increase the storage and account validity using the CLI.
NOTE
The CLI command to add an account does not create Ente accounts. It only adds existing accounts to the list of (existing) accounts that the CLI can use.
Becoming an admin
By default, the first user (and only the first user) created on the system is considered as an admin.
This facility is provided as a convenience for people who are getting started with self hosting. For more serious deployments, we recommend creating an explicit whitelist of admins.
NOTE
The first user is only treated as the admin if the list of admins in the configuration is empty.
Also, if at some point you delete the first user, then you will need to define a whitelist to make some other user as the admin if you wish (since the first account has been deleted).
To whitelist the user IDs that can perform admin actions on the server, use the following steps:
Create a
museum.yaml
in the directory where you're starting museum from. For example, if you're running usingdocker compose up
, then this file should be in the same directory ascompose.yaml
(generally,server/museum.yaml
).Docker might've created an empty
museum.yaml
directory on your machine previously. If so, delete that empty directory and create a new file namedmuseum.yaml
.In this
museum.yaml
we can add overrides over the default configuration.
For whitelisting the admin userIDs we need to define an internal.admins
. See the "internal" section in local.yaml in the server source code for details about how to define this.
Here is an example. Suppose we wanted to whitelist a user with ID 1580559962386440
, we can create the following museum.yaml
internal:
admins:
- 1580559962386440
You can use account list command to find the user id of any account.
Backups
See this FAQ.