http-server default {
bind-to "127.0.0.1:42069"
script {
module "nam_shub_of_enki" path="nam-shub-of-enki"
// None of the configuration is effective yet!
//
// This is *only* here to feel out how the configuration might look in
// the future.
configuration {
set ai.robots.txt::botlist-file "assets/ai.robots.txt-botlist.txt"
append-to ai.robots.txt::excluded-bots "Dot" "nbot" "Operator" "Spider"
append-to poisoned-urls::identifiers "abrakadabra"
}
}
}
I think I like this, though I'm a bit torn on what kind syntax I want to support for lists: do I just... list all the items, like above? Or do I make the items children, like below:
append-to ai.robots.txt::excluded-bots {
- Dot
- nbot
- Operator
- Spider
}
...or do I support both, because depending on the number of items, or the context, either one can make more sense than the other.
Or perhaps this?
ai.robots.txt::excluded-bots {
+ Dot
+ nbot
+ Operator
+ Spider
}
+ adds an item, - removes it.
...but that doesn't make it easy to set the list to a specific value, with similar syntax.
