Allow .molly files to set certificate zones.
This commit is contained in:
parent
702cc73a63
commit
fd31094cb6
3 changed files with 5 additions and 4 deletions
|
@ -296,6 +296,7 @@ E.g. when handling a request which maps to
|
||||||
Only the following settings can be overriden by `.molly` files. Any
|
Only the following settings can be overriden by `.molly` files. Any
|
||||||
other settings in `.molly` files will be ignored:
|
other settings in `.molly` files will be ignored:
|
||||||
|
|
||||||
|
* `CertificateZones`
|
||||||
* `DefaultLang`
|
* `DefaultLang`
|
||||||
* `DirectorySort`
|
* `DirectorySort`
|
||||||
* `DirectoryReverse`
|
* `DirectoryReverse`
|
||||||
|
@ -305,10 +306,6 @@ other settings in `.molly` files will be ignored:
|
||||||
* `PermRedirects`
|
* `PermRedirects`
|
||||||
* `TempRedirects`
|
* `TempRedirects`
|
||||||
|
|
||||||
Future support is planned for `.molly` files to be able to override:
|
|
||||||
|
|
||||||
* `CertificateZones`
|
|
||||||
|
|
||||||
## Trivia
|
## Trivia
|
||||||
|
|
||||||
Margaret Brown was an American philanthropist and socialite who
|
Margaret Brown was an American philanthropist and socialite who
|
||||||
|
|
|
@ -33,6 +33,7 @@ type MollyFile struct {
|
||||||
TempRedirects map[string]string
|
TempRedirects map[string]string
|
||||||
PermRedirects map[string]string
|
PermRedirects map[string]string
|
||||||
MimeOverrides map[string]string
|
MimeOverrides map[string]string
|
||||||
|
CertificateZones map[string][]string
|
||||||
DefaultLang string
|
DefaultLang string
|
||||||
DirectorySort string
|
DirectorySort string
|
||||||
DirectoryReverse bool
|
DirectoryReverse bool
|
||||||
|
|
|
@ -312,6 +312,9 @@ func parseMollyFiles(path string, config *Config, errorLogEntries chan string) {
|
||||||
for key, value := range mollyFile.MimeOverrides {
|
for key, value := range mollyFile.MimeOverrides {
|
||||||
config.MimeOverrides[key] = value
|
config.MimeOverrides[key] = value
|
||||||
}
|
}
|
||||||
|
for key, value := range mollyFile.CertificateZones {
|
||||||
|
config.CertificateZones[key] = value
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue