Allow LAN admin access and add a campaign mint form (#11).
CI / test (pull_request) Successful in 6s
CI / test (pull_request) Successful in 6s
Serve /admin/ on 10.0.0.128 so it can be used from another machine on the network, and mint tracked short URLs from domain/campaign/source/metric.
This commit is contained in:
@@ -19,8 +19,9 @@ This service is standalone. Do not fold it into `monica_site`.
|
||||
named Bearer token. No token / wrong token → **401**. No tokens configured → **503**.
|
||||
`GET /<code>` never requires a token.
|
||||
|
||||
`/admin/` is 404 on the public host (localhost only). `GET /debug/` is a mint form
|
||||
when `DEBUG=true` and never on the public short host.
|
||||
`/admin/` is 404 on the public host. Local compose serves it on `localhost` and
|
||||
`10.0.0.128` (`http://10.0.0.128:8005/admin/` from another machine on the LAN).
|
||||
`GET /debug/` is a mint form when `DEBUG=true` and never on the public short host.
|
||||
|
||||
## Local run
|
||||
|
||||
@@ -40,6 +41,7 @@ uv run python manage.py runserver
|
||||
# optional local admin:
|
||||
# uv run python manage.py createsuperuser
|
||||
# then http://127.0.0.1:8005/admin/ (compose) or :8000 (runserver)
|
||||
# LAN: http://10.0.0.128:8005/admin/ (compose publishes 0.0.0.0:8005)
|
||||
```
|
||||
|
||||
Tests (SQLite, no network):
|
||||
|
||||
Reference in New Issue
Block a user