Skip to content

Commit

Permalink
Merge pull request #62 from sourcelair/mode-default-proxy
Browse files Browse the repository at this point in the history
Default route mode to `proxy` for backwards compatibility
  • Loading branch information
parisk committed Mar 6, 2019
2 parents 5a59a30 + 768cad9 commit 7bfd9c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ceryx/nginx/lualib/router.lua
Expand Up @@ -53,8 +53,9 @@ if is_not_https then
end
end

-- Get routing mode
-- Get routing mode (default to "proxy")
local mode, mode_flags = redisClient:hget(settings_key, "mode")
mode = mode or "proxy"

ngx.log(ngx.INFO, "HOST " .. host)
local route = routes.getRouteForSource(host)
Expand Down

0 comments on commit 7bfd9c9

Please sign in to comment.