Remote configuration

Reference | Administration

When starting a Granitic application, you provide a list of folders and configuration files that are merged together to form a single view of application configuration. These files may be stored on a filesystem, but may also be served by an HTTP server.

For example:

shell script myapp -c config/,/var/myapp/local.json,

URLs may be any valid URL as defined by the Go URL parser.


The response to the request to a config-providing URL must contain:

  • A content type of application/json
  • A JSON formatted response body
  • A status code of 200

If any of these conditions are not met, your application will fail to start.

Next: Instance identification

Prev: Administration index