summaryrefslogtreecommitdiffstats
path: root/docs/SERVER_SETUP.md
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-29 17:02:49 +0100
committersalmonik <salmonik@tuta.io>2026-10-29 17:02:49 +0100
commit3b50928cb083b104043ac65433ed090c87731eb7 (patch)
tree1d65beaaa68188c521b0d7da3f78c847540e5c32 /docs/SERVER_SETUP.md
parentv1.3.1: allow = to increase the bet (diff)
downloadzagan-bet-3b50928cb083b104043ac65433ed090c87731eb7.tar.gz
zagan-bet-3b50928cb083b104043ac65433ed090c87731eb7.zip
v2.0.0: reset plays audit to a generic per-game schema
Diffstat (limited to '')
-rw-r--r--docs/SERVER_SETUP.md16
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
69regenerate the server identity, the client will reject the new key; run 69regenerate 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
74The server creates `server.db` in the current directory on first use. It holds
75users, balances, and the per-game `plays` audit. The client keeps its own
76`client.db` for host fingerprints and stored credentials.
77
78During development, delete both files to reset users, balances, history, and
79trust:
80
81```sh
82rm -f server.db client.db
83```
84
85The `plays` schema is not auto-migrated from the old slots-only shape; a stale
86database 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`