Improve docs and re-enable test UI
This commit is contained in:
@@ -47,3 +47,5 @@ Set `FACE_LOCK_TEST_UI=false` to disable the UI.
|
|||||||
```bash
|
```bash
|
||||||
docker compose up --build
|
docker compose up --build
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you change env vars in `.env`, recreate the container, `docker compose up -d --force-recreate`, because restart alone will not reload `--env-file`.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
face-lock is a FastAPI service that detects a primary subject, makes a square crop, and returns both a crop and an annotated preview.
|
face-lock is a FastAPI service that detects a primary subject, makes a square crop, and returns both a crop and an annotated preview. The app ships with a simple Tailwind test UI at `/`.
|
||||||
|
|
||||||
## Endpoints
|
## Endpoints
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@ face-lock is a FastAPI service that detects a primary subject, makes a square cr
|
|||||||
|
|
||||||
## Test UI
|
## Test UI
|
||||||
|
|
||||||
Set `FACE_LOCK_TEST_UI=false` to disable the `/` test UI.
|
Set `FACE_LOCK_TEST_UI=false` to disable the `/` test UI. If you update `.env`, recreate the container so Docker picks up the new values.
|
||||||
|
|
||||||
## Authentication
|
## Authentication
|
||||||
|
|
||||||
@@ -44,3 +44,7 @@ curl -H 'X-API-Key: your-token' \
|
|||||||
-F 'detector=animal' \
|
-F 'detector=animal' \
|
||||||
http://localhost:8000/api/focus
|
http://localhost:8000/api/focus
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Docker note
|
||||||
|
|
||||||
|
Use `docker compose up -d --force-recreate` after env changes.
|
||||||
|
|||||||
Reference in New Issue
Block a user