Rewrite Module (Obsoleted in EMQ X 3.0)
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
etc
src
.gitignore
LICENSE
Makefile
README.md
erlang.mk

README.md

emq_mod_rewrite

Rewrite Module

Configuration

etc/emq_mod_rewrite.config

[
  {emq_mod_rewrite, [
    {rules, [
      %% {rewrite, Topic, Re, Dest}
      
      %% Example: x/y/# -> z/y/#
      %% {rewrite, "x/#", "^x/y/(.+)$", "z/y/$1"},

      %% {rewrite, "y/+/z/#", "^y/(.+)/z/(.+)$", "y/z/$2"}
    ]}
  ]}
].

License

Apache License Version 2.0

Author

feng at emqtt.io