Config File
The MistServer configuration file
By default MistServer stores the configuration in the same folder as the MistController as config.json
or if ran as a service in /etc/mistserver.conf
. You can also determine your own location by setting the boot flag --config /path/to/file
when booting MistController.
The MistServer configuration file is a JSON blob containing all the settings. Under its defaults MistServer will save the configuration 1 minute after the last configuration change and will reload if it detects changes to the configuration itself. Instead of making API calls to MistServer one could opt to just change the configuration file directly using the same JSON format.
Migrating settings to another server
Using a pre-configured configuration file to immidiately load in settings in a fresh MistServer is a common occurance when scaling up. All you need to do is copy over the configuration file and you are done. It doesn't matter whether MistServer was already active.