Files
fn-serverless/docs/developers/configs.md
2018-06-08 11:47:04 +01:00

511 B

Function Config Vars

There are three ways to get configuration variables into a function, all of which will be available as environment variables. These are ordered in order of preference, the later ones overriding the previous ones.

1. Application level configuration

fn config app myapp LOG_LEVEL debug

2. Function configuration from func.yaml

See Function file for more info.

3. Route level configuration

fn  config route myapp hello2 LOG_LEVEL info