Skip to content

Commit b19592a

Browse files
sirainencmouse
authored andcommitted
upgrade: Add Configuration Redesign section
1 parent e4cfe82 commit b19592a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

docs/installation/upgrade/include/2.4-redesign.inc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,32 @@ to avoid unexpected storage file format incompatibilities.
1414

1515
Note that the configuration syntax has been changed, and your old configuration **will not** work
1616
without changes.
17+
18+
#### Configuration Redesign
19+
20+
See [[link,settings_syntax]] for the new configuration syntax. This is similar
21+
to v2.3, but different in some ways. Especially the configuration is no longer
22+
hierarchical - all settings are global settings and can be used anywhere
23+
(although they might not actually do anything there). Settings can be inside
24+
various filters to specify where they are wanted to be used.
25+
26+
To avoid repetition in setting name prefixes, they are automatically attempted
27+
to be prefixed to their parent filter names. For example these are equivalent
28+
for the [[setting,passdb_sql_query]] setting inside the [[setting,passdb]]
29+
filter:
30+
31+
```
32+
passdb sql {
33+
passdb_sql_query = SELECT ...
34+
}
35+
passdb sql {
36+
sql_query = SELECT ...
37+
}
38+
passdb sql {
39+
query = SELECT ...
40+
}
41+
passdb sql2 {
42+
# This will NOT work, as it expands to nonexistent passdb_sql2_query:
43+
#query = SELECT ...
44+
}
45+
```

0 commit comments

Comments
 (0)