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
Copy file name to clipboardExpand all lines: docs/node/config/index.md
-80Lines changed: 0 additions & 80 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,83 +77,3 @@ paths = (
77
77
}
78
78
)
79
79
```
80
-
81
-
## Tips & Tricks
82
-
83
-
### Use environment variables in your configuration {#node-config-envvars}
84
-
85
-
VILLASnode substitutes any environment variables in you JSON and libconfig configuration files.
86
-
87
-
To replace environment variables you must use the following syntax within any string value of your config: `${MYENV_VAR}`.
88
-
89
-
**Note:** Non-string values can currently not be substituted by environment variables!
90
-
91
-
#### Example
92
-
93
-
<!-- convert to JSON -->
94
-
```
95
-
nodes = {
96
-
file_node = {
97
-
uri = "${FILE_PATH}"
98
-
}
99
-
}
100
-
```
101
-
102
-
### Include other files into your configuration {#node-config-include}
103
-
104
-
VILLASnode can include other files into you configuration.
105
-
This allows you to better structure and reuse parts of your configuration (e.g. the node definitions).
106
-
107
-
File inclusion is handled via a special key in JSON objects named `@include`.
108
-
The value of this key must point to an existing file on your file system.
109
-
110
-
**Note:** libconfig supports inclusion of other files [out of the box via @include directives](http://hyperrealm.github.io/libconfig/libconfig_manual.html#Include-Directives). So this tip is mostly useful for JSON configuration files.
0 commit comments