Service configuration

In order to separate the service-configuration from the main-configuration, you can specify your config in a file called Its structure is similiar to the specter-wide, e.g.:

class BaseConfig():

class ProductionConfig(BaseConfig):

In your code, you can access the correct value as in any other flask-code, like api_url = app.config.get("MYSERVICE_API_URL"). If the instance is running a config (e.g. DevelopmentConfig) which is not available in your service-specific config (as above), the inheritance-hirarchy from the mainconfig will get traversed and the first hit will get configured. In this example, it would be BaseConfig.