Commit 065eeb42 authored by Matthew Holt's avatar Matthew Holt

Move rewrite and ext middlewares to before gzip (fixes #914)

parent d4b10b69
...@@ -343,6 +343,8 @@ var directives = []string{ ...@@ -343,6 +343,8 @@ var directives = []string{
// directives that add middleware to the stack // directives that add middleware to the stack
"log", "log",
"rewrite",
"ext",
"gzip", "gzip",
"locale", // github.com/simia-tech/caddy-locale "locale", // github.com/simia-tech/caddy-locale
"errors", "errors",
...@@ -350,10 +352,8 @@ var directives = []string{ ...@@ -350,10 +352,8 @@ var directives = []string{
"ipfilter", // github.com/pyed/ipfilter "ipfilter", // github.com/pyed/ipfilter
"search", // github.com/pedronasser/caddy-search "search", // github.com/pedronasser/caddy-search
"header", "header",
"cors", // github.com/captncraig/cors/caddy
"rewrite",
"redir", "redir",
"ext", "cors", // github.com/captncraig/cors/caddy
"mime", "mime",
"basicauth", "basicauth",
"jwt", // github.com/BTBurke/caddy-jwt "jwt", // github.com/BTBurke/caddy-jwt
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment