Rewrite Module
Erlang Makefile
Latest commit 521a590 Jan 11, 2017 @emqplus emqplus committed on GitHub Merge pull request #2 from emqtt/emq20
Version 2.0.7
Permalink
Failed to load latest commit information.
etc first commit Oct 14, 2016
src Copyright (c) 2016-2017 Jan 11, 2017
.gitignore first commit Oct 14, 2016
LICENSE Initial commit Oct 14, 2016
Makefile Merge pull request #2 from emqtt/emq20 Jan 11, 2017
README.md first commit Oct 14, 2016
erlang.mk first commit Oct 14, 2016

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