Browse Source

Allow .molly files to set certificate zones.

master
Solderpunk 1 year ago
parent
commit
fd31094cb6
  1. 5
      README.md
  2. 1
      config.go
  3. 3
      handler.go

5
README.md

@ -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

1
config.go

@ -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

3
handler.go

@ -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
}
}
}

Loading…
Cancel
Save