docs: update README with systemd instructions and tailscale ip
This commit is contained in:
@@ -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://<YOUR_PI_IP>: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://<YOUR_PI_IP>: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: <YOUR_API_KEY>`
|
||||
|
||||
Reference in New Issue
Block a user