Files
ponas 7efa230deb
CI / tests (push) Successful in 1m52s
CI / prek (push) Successful in 17s
CI / image (push) Successful in 1m41s
CI / deploy-lynx (push) Successful in 27s
feat: build an image and deploy it to lynx from ci
2026-11-03 04:13:05 +01:00

678 B

django-postfix-dovecot-api

REST API for managing the virtual domains, users and aliases that Postfix and Dovecot read from the database. Used by mailadmin.

Development

mise install
uv sync
prek install
uv run python manage.py migrate
uv run python manage.py runserver
uv run pytest

API docs are served at /api/docs. Override settings (database, secret key, Sentry) in dpdapisite/local_settings.py.

Deployment

CI builds an image for each push to main and deploys it to lynx while the repository variable DEPLOY_LYNX is true. The image reads its settings from the environment (dpdapisite/settings_prod.py).