diff options
Diffstat (limited to 'docs/SERVER_SETUP.md')
| -rw-r--r-- | docs/SERVER_SETUP.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/SERVER_SETUP.md b/docs/SERVER_SETUP.md index e2f3177..62d1a9c 100644 --- a/docs/SERVER_SETUP.md +++ b/docs/SERVER_SETUP.md | |||
| @@ -69,6 +69,22 @@ On first contact the client prints the SPKI fingerprint and pins it. If you | |||
| 69 | regenerate the server identity, the client will reject the new key; run | 69 | regenerate the server identity, the client will reject the new key; run |
| 70 | `forget-host` in the client if the change is intentional. | 70 | `forget-host` in the client if the change is intentional. |
| 71 | 71 | ||
| 72 | ## Database | ||
| 73 | |||
| 74 | The server creates `server.db` in the current directory on first use. It holds | ||
| 75 | users, balances, and the per-game `plays` audit. The client keeps its own | ||
| 76 | `client.db` for host fingerprints and stored credentials. | ||
| 77 | |||
| 78 | During development, delete both files to reset users, balances, history, and | ||
| 79 | trust: | ||
| 80 | |||
| 81 | ```sh | ||
| 82 | rm -f server.db client.db | ||
| 83 | ``` | ||
| 84 | |||
| 85 | The `plays` schema is not auto-migrated from the old slots-only shape; a stale | ||
| 86 | database must be removed. | ||
| 87 | |||
| 72 | ## Windows | 88 | ## Windows |
| 73 | 89 | ||
| 74 | `--init` shells out to `openssl`, so OpenSSL must be installed and on `PATH` | 90 | `--init` shells out to `openssl`, so OpenSSL must be installed and on `PATH` |
