MyNixOS website logo
option

services.iocaine.settings

The configuration for iocaine. See the configuration reference for full documentation on the fields.

Declarations
Type
null or (open submodule of (JSON value))
Default
null
Example
{
  server.default = {
    bind = "localhost:2137";
    mode = "http";
    use.handler-from = "default";
  };

  handler.default = {
    settings = {
      "ai-robots-txt-path" = "/etc/iocaine/data/ai.robots.txt-robots.json";
      sources = {
        training-corpus = [
          "/data/corpus/1984.txt"
          "/data/corpus/brave-new-world.txt"
        ];
        wordlists = [ "/data/corpus/words.txt" ];
      };
    };
  };
}