diff --git a/README.md b/README.md index db57588..f9050db 100644 --- a/README.md +++ b/README.md @@ -48,11 +48,13 @@ Instead of manually editing your crontab, this project provides a simple GraphQL cp .env.example .env # Edit .env and set your own secure API_KEY ``` -2. Start the API server: +2. The API is managed as a `systemd` user service and starts automatically on boot. To manage it manually, you can use: ```bash - uv run uvicorn api.main:app --host 0.0.0.0 --port 8000 + systemctl --user status wecker-api.service + systemctl --user restart wecker-api.service ``` -3. The API will be available at `http://:8000/graphql`. + *(If you want to run it manually instead: `uv run uvicorn api.main:app --host 0.0.0.0 --port 8000`)* +3. The API will be available at `http://:8000/graphql` (For Tailscale users: `http://100.88.83.57:8000/graphql`). **Authentication:** All requests to the `/graphql` endpoint require a custom header: `X-API-Key: `