This repository has been archived by the owner on Feb 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Configuration
Daniel Berman edited this page Feb 11, 2018
·
5 revisions
Apollo requires a HOCON-formatted configuration file to retrieve all required resources. If not supplied, Apollo will exit with an error.
The configuration file can be loaded from:
- A file system path using the
APOLLO_CONFIG_FILEPATH
environment variable. - Or the configuration can be loaded as a consul key using
APOLLO_CONSUL_URL
andAPOLLO_CONSUL_KEY
environment variables. - If you are using both options, the consul configuration will be merged and override the filesystem file configuration.
Configuration example:
apollo {
db { # Self explenatory
port = 3306
host = "..."
user = "apollo"
password = "..."
schema = "apollo"
}
api {
listen = "0.0.0.0" # Where should apollo backend listen
port = 8081 # And on which port
secret = "SuperTestingSecret" # Secret to encrypt websessions with
}
kubernetes {
monitoringFrequencySeconds = 5 # How frequent should the apollo's kubernetes monitoring thread check the deployment statuses
}
scm {
githubLogin = "" # Github user (in case you need private repositories access)
githubOauthToken = "" # Access token created in your user settings. Should have view access for private repos
}
}