- Python 71.4%
- HTML 28.2%
- Dockerfile 0.3%
- Shell 0.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .forgejo/workflows | ||
| api | ||
| dome | ||
| entities | ||
| integrations | ||
| tracking | ||
| users | ||
| .env.example | ||
| .gitignore | ||
| AGENTS.md | ||
| DESIGN.md | ||
| docker-compose.yml | ||
| Dockerfile | ||
| entrypoint.sh | ||
| manage.py | ||
| nub.lock | ||
| package.json | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
Dome
⏺️ Comprehensive media tracker
Dome is a comprehensive media tracking service designed to handle a diverse range of entities.
Install
You can set up Dome using Docker or run it locally.
Docker
To set up Dome using Docker, follow these steps:
- Clone the repository and navigate to the project directory.
- Run
docker compose upto start all containers
Local
You can also choose to run the webapp locally:
- Clone the repository and navigate to the project directory.
- Run
uv syncto install dependencies using uv
Environment
In both cases, you should use the .env.example file as a template for your environment variables.
Copy it to .env and fill in the required values.
Usage
See entrypoint.sh for usage options.
Authentication
Dome keeps no passwords. The app and the Django Admin both sign in through
Thermopylae (OpenID Connect, RS256, PKCE S256). Bearer API tokens
from the API Tokens page keep working as before.
| Variable | Example | Notes |
|---|---|---|
OIDC_ISSUER |
https://thermopylae.marut.network |
Endpoints are derived from it |
OIDC_CLIENT_ID |
dome |
Client ID of the Dome application |
OIDC_CLIENT_SECRET |
— | Shown once, when the application is created |
Register Dome in Thermopylae's /admin with the redirect URI https://<dome-host>/oidc/callback/. Dome
asks for the openid email profile roles scopes. Give a user the admin role under the Dome client to
make them staff and superuser; roles are re-applied at every sign-in, so revoking it takes effect at the
next one. Without these variables the app still builds and migrates (manage.py check warns
users.W001), but nobody can sign in. Signing out ends the Dome session only, not the Thermopylae one.
Accounts are bound to Thermopylae's stable subject (sub), never to a username or email. Someone signing
in for the first time gets a new account, with a username taken from their email's local part (-2, -3…
is added on a collision). Dome usernames are public URLs and are never changed by sign-in.
Existing account. Migration users.0004 links the existing exler account to the Thermopylae account
kamil@marut.network at https://thermopylae.marut.network, so OIDC_ISSUER must be exactly that issuer.
No manual command is needed: deploy, migrate (before or after setting the OIDC variables), and the first
verified sign-in with that email binds the account, keeping its tracking, avatar and API tokens. The
migration does nothing on a database without exler or where exler is already linked, and stops with an
error if that email is already linked to another account (delete that identity or stray account in the
admin, then migrate again). Reversing it leaves the identity in place. To unlink, delete the Thermopylae
identity on the user's admin page.
Development
In order to change the page's styles, you need to have Nub installed. Run nub run watch or nub run compile to compile TailwindCSS styles.