Add the profile image UI and docs (SCR-1)
CI / validate-monitoring (push) Successful in 10s
CI / lint (push) Successful in 14s
CI / federation-interop (push) Successful in 1m15s
CI / test (push) Successful in 7m2s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / trigger-deploy (push) Skipped
CI / notify (push) Successful in 5s
CI / validate-monitoring (push) Successful in 10s
CI / lint (push) Successful in 14s
CI / federation-interop (push) Successful in 1m15s
CI / test (push) Successful in 7m2s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / trigger-deploy (push) Skipped
CI / notify (push) Successful in 5s
A Profile page to upload, use Gravatar or remove the image, the avatar in the page header and on the public profile, a Sharing switch for it, and user/admin guide notes. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b878523d51
commit
b388e7112d
10 files changed
+246
-2
No files matched your search
@@ -62,6 +62,8 @@ read **Putting it behind TLS** below — the quick start above serves plain HTTP
|
||||
| `LASTFM_API_KEY` | api, worker | *(unset)* | Enables importing straight from Last.fm ([get a key](https://www.last.fm/api/account/create)) |
|
||||
| `MUSICBRAINZ_CONTACT` | api, worker | `UI_BASE_URL` | Contact URL/email sent to MusicBrainz for album art lookups (no key needed, but they ask for one) |
|
||||
| `ART_STORAGE_DIR` | api, worker | `var/album-art` | Where downloaded album art is stored; the worker writes it, the api serves it — both need access to the same directory (`docker compose` mounts a shared volume there) |
|
||||
| `AVATAR_UPLOAD_MAX_BYTES` | api | 2 MB | Largest profile image a user may upload (a reverse proxy needs a body limit at least this large too). Images are stored in `avatars/` inside `ART_STORAGE_DIR` |
|
||||
| `AVATAR_GRAVATAR_ENABLED` | api | off | Lets users use their Gravatar as their profile image. The api then calls gravatar.com (outbound HTTPS needed), sending it a SHA-256 hash of the user's email address; browsers never contact Gravatar |
|
||||
| `ART_UPLOAD_MAX_BYTES` | api | 5 MB | Largest image a user may upload as their own album art. A reverse proxy in front of the api needs a body limit at least this large |
|
||||
| `IMPORT_MAX_BYTES` | api | 200 MB | Largest export file accepted |
|
||||
| `WORKER_METRICS_PORT` | worker | `9101` | The worker's Prometheus metrics port |
|
||||
@@ -201,6 +203,11 @@ disposable cache — it's simply re-downloaded the next time it's requested. Ima
|
||||
volume and can't be re-created, so include the volume in your backups. The database rows
|
||||
that point at them are in `user_album_art`; restore the two together.
|
||||
|
||||
Profile images (uploads, and copies of users' Gravatars) are in `avatars/` in that volume,
|
||||
one file per user id, and likewise belong in your backups. The `users` table records
|
||||
which users have one (`avatar_source`); a missing file just shows as no image. Gravatar
|
||||
copies can be re-fetched by their users, but uploads can't be re-created.
|
||||
|
||||
## Upgrades
|
||||
|
||||
```sh
|
||||
|
||||
@@ -65,6 +65,22 @@ flight. Unlike live scrobbles, imports keep plays of any age (still skipping row
|
||||
artist or track, or plays dated in the future). Plays already in your history are
|
||||
skipped, so importing the same export again, or importing overlapping exports, is safe.
|
||||
|
||||
## Your profile image
|
||||
|
||||
Click your name in the page header to open **Profile**, where you can give yourself a
|
||||
picture, shown next to your name. Upload a JPEG, PNG or WebP image, or remove it again.
|
||||
|
||||
If your instance's admin has allowed it, you can also **use your Gravatar**. The server
|
||||
asks Gravatar for the picture linked to your account email, sending it a hash of that
|
||||
address (never the address itself), and keeps a copy; your browser doesn't contact
|
||||
Gravatar. **Refresh Gravatar** fetches it again after you change it there. Choosing an
|
||||
upload replaces a Gravatar and vice versa.
|
||||
|
||||
Your image is private by default. If your instance shares on the fediverse, **Sharing**
|
||||
has a **Share my profile image** switch that shows it on your public profile page and
|
||||
sends it to other servers as your picture. They keep their own copies, so a change or
|
||||
removal can take a while to show up everywhere.
|
||||
|
||||
## Sharing on the fediverse
|
||||
|
||||
Only available if your instance's admin has turned this on — ask them, or check whether
|
||||
|
||||
Reference in new issue
Block a user