You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alternatively the application can be installed directly from PyPI (`pip install satosa`), or the [Docker image](https://hub.docker.com/r/satosa/) can be used.
30
30
31
31
# Configuration
32
+
SATOSA is configured using YAML.
33
+
32
34
All default configuration files, as well as an example WSGI application for the proxy, can be found
33
35
in the [example directory](../example).
34
36
37
+
The default YAML syntax is extended to include the capability to resolve
38
+
environment variables. The following tags are used to achieve this:
39
+
40
+
* The `!ENV` tag
41
+
42
+
The `!ENV` tag is followed by a string that denotes the environment variable
43
+
name. It will be replaced by the value of the environment variable with the
44
+
same name.
45
+
46
+
In the example below `LDAP_BIND_PASSWORD` will, at runtime, be replaced with
47
+
the value from the process environment variable of the same name. If the
48
+
process environment has been set with `LDAP_BIND_PASSWORD=secret_password` then
49
+
the configuration value for `bind_password` will be `secret_password`.
50
+
51
+
```
52
+
bind_password: !ENV LDAP_BIND_PASSWORD
53
+
```
54
+
55
+
* The `!ENVFILE` tag
56
+
57
+
The `!ENVFILE` tag is followed by a string that denotes the environment
58
+
variable name. It will be replaced by the value of the environment variable
59
+
with the same name.
60
+
61
+
In the example below `LDAP_BIND_PASSWORD_FILE` will, at runtime, be replaced
62
+
with the value from the process environment variable of the same name. If the
63
+
process environment has been set with
64
+
`LDAP_BIND_PASSWORD_FILE=/etc/satosa/secrets/ldap.txt` then the configuration
65
+
value for `bind_password` will be `secret_password`.
0 commit comments