postgres makes me want to kill myself actually, sqlite all the way :333
This commit is contained in:
@@ -70,18 +70,18 @@ API_RATE_LIMIT_MAX=120
|
||||
## Uptime snapshots
|
||||
|
||||
The production server samples uptime every 30 minutes and exposes the history at
|
||||
`/api/uptime`. Set `DATABASE_URL` or `UPTIME_DATABASE_URL` to persist snapshots
|
||||
in Postgres:
|
||||
`/api/uptime`. Snapshots are stored in SQLite under `~/tsswebstorage` by
|
||||
default. Set `UPTIME_STORAGE_DIR` to choose a different folder:
|
||||
|
||||
```sh
|
||||
DATABASE_URL=postgres://user:password@127.0.0.1:5432/tssbot
|
||||
UPTIME_STORAGE_DIR=~/tsswebstorage
|
||||
UPTIME_DATABASE_FILE=uptime.sqlite
|
||||
UPTIME_SAMPLE_INTERVAL_MS=1800000
|
||||
UPTIME_HISTORY_LIMIT=336
|
||||
```
|
||||
|
||||
The server creates the `uptime_snapshots` table automatically. Without a
|
||||
database URL, uptime sampling still runs but only the latest in-memory snapshot
|
||||
is available.
|
||||
The server creates the storage folder, SQLite database, and `uptime_snapshots`
|
||||
table automatically.
|
||||
|
||||
## GitHub webhook
|
||||
|
||||
|
||||
Reference in New Issue
Block a user