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.
For security purposes, we need to whitelist the user IDs that can perform admin actions on the server. To do this,
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.