NOTE: A whydah is a kind of bird.
This is a simple Python configuration server. It will pull a git repository
and look for config.json
files in one level of directories, where it's assumed
the service that is using this server will be named after the directory.
It will then serve the configuration files as JSON, with the service name as the key.
The server is configured using environment variables.
Variable | Description | Required |
---|---|---|
GIT_REPO_URL |
The URL to the git repository to pull. | Yes |
GIT_TOKEN |
The token to use when pulling the git repository. | No |
Return a list of services.
Returns the configuration for the given service as JSON.
Change a setting.
Pulls the git repository and reloads the configuration.