1
0
Fork 0

Allow .molly files to set certificate zones.

This commit is contained in:
Solderpunk 2020-06-30 20:39:26 +02:00
parent 702cc73a63
commit fd31094cb6
3 changed files with 5 additions and 4 deletions

View file

@ -296,6 +296,7 @@ E.g. when handling a request which maps to
Only the following settings can be overriden by `.molly` files. Any
other settings in `.molly` files will be ignored:
* `CertificateZones`
* `DefaultLang`
* `DirectorySort`
* `DirectoryReverse`
@ -305,10 +306,6 @@ other settings in `.molly` files will be ignored:
* `PermRedirects`
* `TempRedirects`
Future support is planned for `.molly` files to be able to override:
* `CertificateZones`
## Trivia
Margaret Brown was an American philanthropist and socialite who

View file

@ -33,6 +33,7 @@ type MollyFile struct {
TempRedirects map[string]string
PermRedirects map[string]string
MimeOverrides map[string]string
CertificateZones map[string][]string
DefaultLang string
DirectorySort string
DirectoryReverse bool

View file

@ -312,6 +312,9 @@ func parseMollyFiles(path string, config *Config, errorLogEntries chan string) {
for key, value := range mollyFile.MimeOverrides {
config.MimeOverrides[key] = value
}
for key, value := range mollyFile.CertificateZones {
config.CertificateZones[key] = value
}
}
}