From db585bb1dcdf7a4ce3c3cfad977a3f2975f7acc4 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sat, 9 Jan 2021 00:17:19 -0700 Subject: [PATCH] Add the datastores section of the server config --- server/template.toml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/server/template.toml b/server/template.toml index c0297f4..766983b 100644 --- a/server/template.toml +++ b/server/template.toml @@ -63,6 +63,21 @@ port = 8081 permitted_hosts = "http://localhost:8080" +[datastores] + +# Whether or not to save games that are active to the server's hard drive when +# it crashes for whatever reason. This will also enable loading of those games +# on server startup and allows game clients to reconnect to the game. +enabled = false + +# The file extension used to save and load the datastore files. +filetype = "game" + +# The filepath pointing to where to save the datastore files to. This can +# either be a relative or absolute filepath. +directory = "" + + [log] # The log level to output to the CLI, this can be one of the following: # - "silly"