This commit is contained in:
Feng Lee 2015-05-24 18:34:54 +08:00
parent d19805b68c
commit ced7acbf1c
1 changed files with 14 additions and 0 deletions

14
rel/files/rewrite.config Normal file
View File

@ -0,0 +1,14 @@
%%%-----------------------------------------------------------------------------
%%
%% [Rewrite](https://github.com/emqtt/emqttd/wiki/Rewrite)
%%
%%%-----------------------------------------------------------------------------
{topic, "x/#", [
{rewrite, "^x/y/(.+)$", "z/y/$1"},
{rewrite, "^x/(.+)$", "y/$1"}
]}.
{topic, "y/+/z/#", [
{rewrite, "^y/(.+)/z/(.+)$", "y/z/$2"}
]}.