Documentation
¶
Overview ¶
Command cloudsaved runs the cloud save service as a standalone HTTP server, with slots in SQLite or Postgres.
cloudsaved init -config cloudsave.yaml cloudsaved serve -config cloudsave.yaml -keyset keys.yaml -sqlite saves.db -addr :8081 CLOUDSAVE_POSTGRES_DSN=postgres://... cloudsaved serve -config cloudsave.yaml -keyset keys.yaml -postgres
init writes a configuration with the default settings. serve runs the service until SIGINT or SIGTERM. It verifies players' tokens with the key set file of the account service (the one accountsd genkey keeps), which it reads once at start, so restart it after adding a key to that file. It accepts only tokens for the configuration's audience ("cloudsave" by default), which devices get from the account service's refresh, and refuses to start when that audience is the key set's, which names the game's servers.
Put the server behind TLS and a rate limiter, as for accountsd.