Documentation menu

Operating the server

Configuration with memex config

memex config shows and changes the settings of an installed instance; the Configuration entry of the menu edits the same values. Where a setting is stored decides when a change applies: settings in the database apply at once, settings in the configuration file need a restart.

Commands

sudo memex config show
sudo memex config get public_url
sudo memex config set public_url https://brain.example.com
sudo memex config set update_mode notify

memex config show lists every setting, where each one is stored, and the ones decided by memex install. Values are checked before anything is written: an invalid address or an unknown mode is refused with the reason.

Settings in the configuration file (restart needed)

These are read when the server starts. memex config set rewrites /etc/memex/config.toml with the same owner and permissions and says that a restart is needed. In a terminal it offers to restart the service; --restart does it without asking; otherwise it prints the command, sudo systemctl restart memex.

SettingMeaningValues
public_urlBase address used in the links Memex sends (invitations, password resets) and given to AI clients. Empty: the local address, or the one a quick tunnel announces.An http:// or https:// address with a host and nothing after it, or empty.
trusted_proxyTrust the X-Forwarded-* headers. Turn it on only when nginx, Apache or a tunnel sits in front of Memex.true or false
tls.emailAddress given to Let’s Encrypt for the built-in HTTPS; it receives expiry warnings.An e-mail address

public_url must be the address people really type, scheme included. If the site is reached over https:// while public_url still says http://, authorising an AI assistant is refused with "You do not have permission to do this". See Troubleshooting.

Settings in the database (apply immediately)

These are the settings of the administration pages of the app. The running server reads them when it needs them, so a change applies at once, without a restart, and is recorded in the audit log.

SettingMeaningValues
update_modeHow new versions are handled. See Updates.auto, notify (default) or manual
instance_nameName shown in the app and in the messages Memex sends.Text
allow_member_brainsMembers can create brains. When off, only administrators create brains.true or false (off by default)
registrationclosed: accounts are created from invitations only. open: anyone can create a member account after confirming their e-mail address; this needs an e-mail channel.closed (default) or open
max_accountsNo new account is created once the instance has this many.A whole number; 0 means no limit
max_brains_per_memberHow many brains a member may own. Administrators are not limited.A whole number; 0 means no limit
max_storage_mb_per_memberTotal size of the files in the brains a member created, in MiB. Administrators are not limited.A whole number; 0 means no limit
terms_urlLink to terms of service, shown on the sign-up page with a box to tick.An address, or empty
privacy_urlLink to a privacy policy, shown on the sign-up page with a box to tick.An address, or empty

The last six only matter for an instance opened to people who do not know each other. registration cannot be set to open without an e-mail channel (SMTP or Resend), and opening sign-ups turns allow_member_brains on once. The operator’s guide is hosting.md.

Decided by memex install (read-only here)

The listening address, the TLS mode, the domain and the tunnel are shown by memex config show but are not changed with memex config set, because they come with a reverse-proxy site, a certificate or a tunnel. Run memex install again to change how the instance is reached; see Access modes. The tunnel token is never displayed.

Check a change

sudo memex config get public_url
sudo memex status

Reference: install.md.