Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Configuration

AmbientWeather Local Server supports configuration via command line arguments, environment variables, json config file, and via the user interface. By default, the server looks for a file named configuration.local.json in the same directory where it is run.

Example working config

  1. Api config

Config Precedence

The following defines the precedence in which config definitions are honored. With the first item overriding any below it.

  1. Command Line
  2. Environment Variables
  3. Config File

For example, if you defined a setting ONLY in the Config file, then the Config file setting will be used.

If you defined a setting in both the Config file AND the Environment variables, then the Environment variable setting will be used.

If you defined a setting using all 3 methods (config file, env, and command line), then the setting provided via the command line will be used.


Table of contents