The admin console
What each page of the admin console at /admin does: Overview, People, Server settings with sign-up, limits and email, Flaq Connect, and Security.
The admin console is the part of a Messaging Server that runs in a browser. Only admins sign in to it, at /admin/login. In the desktop app, an admin can open it from Server admin in the menu under their name, or from App settings, and it opens already signed in.
The console is for running the server. Chat happens only in the apps, and the console never shows a message: the server can't read them.
Overview#
The first page. It counts the server's people, channels, messages and files, and who is online now, and shows the server's version, the address for the apps, and the server's id.
People#
Everyone with an account on the server, with a search by name or email. For each person you can:
- Reset password. This signs them out everywhere, and starts new keys for them: their history reopens once another member's app shares it again.
- Deactivate them, or reactivate them. A deactivated account's apps stop working at once. On a server listed on Flaq Connect, deactivating someone also changes the invite link.
Add a person makes an account: a full name, an email address, a temporary password, and whether to make them an admin. Give them the email address and password; they can change the password in Account settings, in the menu under their name.
For someone from another server, type their handle, such as @ana@connect.flaq.dev, in place of the email address. They need no password from you: they sign in at their home. The page shows where each person's home is. Deactivating someone from elsewhere removes them from this server only, and only their home can reset their password.
Server settings#
Changes save as you make them.
This server#
The server name and an icon. The apps show them to tell servers apart: the desktop app lists every server in its rail by its icon. Until a name is set, the server is called by APP_NAME.
Sign-up#
Open sign-up lets anyone who reaches the server create an account from the app. With it off, only an admin adds people, on the People page. New accounts from one address are limited to SIGN_UPS_PER_HOUR an hour.
Limits#
Largest upload (MB), the largest file anyone can send. The default is 1024.
Email#
A mail server lets people who forget their password ask the app for a link that sets a new one. Without one, an admin sets a new password on the People page.
| Field | What it is |
|---|---|
| Mail server, Port | The SMTP server; the port defaults to 587 |
| Security | STARTTLS (the default), TLS, or none, for a mail server on this machine |
| Username, Password | Its sign-in, if it asks for one. A saved password is not shown again; leave the field empty to keep it |
| Sender | The From address of the email |
Send me a test message checks it.
Save it from the public address
Links in the email open the address the console was open at when you saved the mail settings. Save them from the server's public address, not from
localhostor a LAN address.
A reset link works once, within an hour, and points only at that saved address. Like an admin's reset, it starts new keys for the person.
Flaq Connect#
For a server without a domain of its own, such as one at home. Changes save as you make them.
- List this server on Flaq Connect turns the gate on and lists the server.
- Invite link, with Copy, and Reset, which stops every link given out so far.
- Name, the server's name on the Connect, for a short invite link, and an optional contact for the Connect's operator.
- Who can find it: people with an invite link, or anyone who knows its name or id.
- Connects, the Connects it is listed on, one per line.
- Hide my home address: a relay's address with its port, the access key from the relay's operator, and Send everything through a relay.
- Status: Connecting, Listed or Failed for each Connect, the ways in it could check, and with a relay, the traffic used this month.
At home with Connect and Run a relay explain each.
Security#
Accounts from other servers#
Which homes this server takes accounts from:
- This server's own accounts only, the default;
- These homes too, with a list, one per line, such as
connect.flaq.dev; - Any Flaq home.
Let this server's accounts join other servers is on by default. Turned off, the server stops issuing passports, and its accounts stay its own. If the server has no domain for handles yet, the page says so: set PUBLIC_URL, or list it on Flaq Connect with a name. See Accounts across servers.
Turnstile#
Cloudflare Turnstile puts a challenge on the console's sign-in page, which stops most automated password guessing. It is off until you turn it on. The apps can't show it, so their sign-in and sign-up are limited by attempts instead.
- In the Cloudflare dashboard, add a widget and list the hostname the server is reached on.
- On the Security page, paste the site key and the secret key, and press Verify and turn on.
- Complete the challenge that appears. The keys are saved only if Cloudflare accepts the answer, so a wrong key can't lock anyone out.
To change keys, do the same again; leave the secret empty to keep the saved one. Turn off removes the challenge at once and keeps the keys. The secret is stored in the database and never sent to the browser. If nobody can sign in anyway, turn it off from the server:
docker exec flaq flask turnstile off
From the command line#
A few things are done inside the container, with docker exec:
| Command | What it does |
|---|---|
flask create-user EMAIL [--admin] [--name NAME] |
Create an account; asks for the password |
flask reset-password EMAIL |
Set a new password; the way back in for a locked-out admin |
flask backup PATH |
Write a consistent copy of an SQLite database |
flask turnstile status, flask turnstile off |
Show whether Turnstile is on; turn it off when nobody can sign in |
docker exec -it flaq flask reset-password you@example.com
Settings saved here win#
ALLOW_REGISTRATION, MAX_UPLOAD_MB and the Turnstile keys in .env are only defaults for a fresh install. Once they are changed in the console, what is saved there wins. See Settings.