Thanks to @redshiftltd for test driving the nginx setup, and providing
very valuable feedback & the updated configurations.
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
With the previous nginx configuration, all requests that matched
`$badagent` were rewrote to `/ai`, without the original URL anywhere.
This resulted in `iocaine` only seeing `/ai`, and thus, every page ended
up being rendered the same.
The rewrite should take the original request URI into account, which is
what this patch does.
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
Added a few words about compiling Iocaine, added a docker example with a
TOML configuration file (vs the existing environment variable-based
example), and collected a mistake describing the shape of
`IOCAINE__SOURCES__MARKOV`.
These together should largely address #2.
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
This rebuilds the templating so that the *content* is no longer
pre-generated, only the parameters. It is up to the template (and some
newly implemented helper functions) to construct the output from those.
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>