mirror of
https://tildegit.org/solderpunk/molly-brown.git
synced 2025-04-13 09:29:46 +00:00
Make it possible to toggle handling of .molly files on and off via main config.
This commit is contained in:
parent
77691d6983
commit
18c056167f
2 changed files with 4 additions and 1 deletions
|
@ -16,6 +16,7 @@ type Config struct {
|
||||||
DefaultLang string
|
DefaultLang string
|
||||||
AccessLog string
|
AccessLog string
|
||||||
ErrorLog string
|
ErrorLog string
|
||||||
|
ReadMollyFiles bool
|
||||||
TempRedirects map[string]string
|
TempRedirects map[string]string
|
||||||
PermRedirects map[string]string
|
PermRedirects map[string]string
|
||||||
MimeOverrides map[string]string
|
MimeOverrides map[string]string
|
||||||
|
|
|
@ -163,7 +163,9 @@ func handleGeminiRequest(conn net.Conn, config Config, accessLogEntries chan Log
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read Molly files
|
// Read Molly files
|
||||||
parseMollyFiles(path, info, &config, errorLogEntries)
|
if config.ReadMollyFiles {
|
||||||
|
parseMollyFiles(path, info, &config, errorLogEntries)
|
||||||
|
}
|
||||||
|
|
||||||
// Handle directories
|
// Handle directories
|
||||||
if info.IsDir() {
|
if info.IsDir() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue