Change position of locale directive

First, great job on the 0.9 release! It seems caddy's path lead into a bright future. Thanks also for including the locale plugin.

Trying it, I've figured out, that there might be a problem with the order of the directives. In the typical use case, the result of the locale detection might be used in the `rewrite` and `log` plugin. If I'm not mistaken, it makes sense to put the `locale` directive before those.
This commit is contained in:
Philipp Brüll 2016-07-24 11:55:25 +02:00 committed by GitHub
parent 1bbad72ff1
commit 1dd413bd69

View file

@ -342,11 +342,11 @@ var directives = []string{
"git", // github.com/abiosoft/caddy-git
// directives that add middleware to the stack
"locale", // github.com/simia-tech/caddy-locale
"log",
"rewrite",
"ext",
"gzip",
"locale", // github.com/simia-tech/caddy-locale
"errors",
"minify", // github.com/hacdias/caddy-minify
"ipfilter", // github.com/pyed/ipfilter