diff --git a/apps/emqx/include/emqx.hrl b/apps/emqx/include/emqx.hrl
index 3e484ae5a..916eda533 100644
--- a/apps/emqx/include/emqx.hrl
+++ b/apps/emqx/include/emqx.hrl
@@ -14,8 +14,8 @@
%% limitations under the License.
%%--------------------------------------------------------------------
--ifndef(EMQ_X_HRL).
--define(EMQ_X_HRL, true).
+-ifndef(EMQX_HRL).
+-define(EMQX_HRL, true).
%% Shard
%%--------------------------------------------------------------------
diff --git a/apps/emqx/include/emqx_mqtt.hrl b/apps/emqx/include/emqx_mqtt.hrl
index 4354d34fb..2e30cf31c 100644
--- a/apps/emqx/include/emqx_mqtt.hrl
+++ b/apps/emqx/include/emqx_mqtt.hrl
@@ -14,8 +14,8 @@
%% limitations under the License.
%%--------------------------------------------------------------------
--ifndef(EMQ_X_MQTT_HRL).
--define(EMQ_X_MQTT_HRL, true).
+-ifndef(EMQX_MQTT_HRL).
+-define(EMQX_MQTT_HRL, true).
-define(UINT_MAX, 16#FFFFFFFF).
diff --git a/apps/emqx/include/emqx_placeholder.hrl b/apps/emqx/include/emqx_placeholder.hrl
index d9eea7fc3..0d743565b 100644
--- a/apps/emqx/include/emqx_placeholder.hrl
+++ b/apps/emqx/include/emqx_placeholder.hrl
@@ -14,8 +14,8 @@
%% limitations under the License.
%%--------------------------------------------------------------------
--ifndef(EMQ_X_PLACEHOLDER_HRL).
--define(EMQ_X_PLACEHOLDER_HRL, true).
+-ifndef(EMQX_PLACEHOLDER_HRL).
+-define(EMQX_PLACEHOLDER_HRL, true).
-define(PH(Type), <<"${", Type/binary, "}">> ).
diff --git a/apps/emqx/src/emqx_release.erl b/apps/emqx/src/emqx_release.erl
index ac7c7256b..314fe1289 100644
--- a/apps/emqx/src/emqx_release.erl
+++ b/apps/emqx/src/emqx_release.erl
@@ -25,15 +25,15 @@
-include("emqx_release.hrl").
-%% @doc Return EMQ X description.
+%% @doc Return EMQX description.
description() ->
case os:getenv("EMQX_DESCRIPTION") of
- false -> "EMQ X Community Edition";
- "" -> "EMQ X Community Edition";
+ false -> "EMQX Community Edition";
+ "" -> "EMQX Community Edition";
Str -> string:strip(Str, both, $\n)
end.
-%% @doc Return EMQ X edition info.
+%% @doc Return EMQX edition info.
%% Read info from persistent_term at runtime.
%% Or meck this function to run tests for another eidtion.
-spec edition() -> ce | ee | edge.
@@ -41,7 +41,7 @@ edition() ->
try persistent_term:get(emqx_edition)
catch error : badarg -> get_edition() end.
-%% @private initiate EMQ X edition info in persistent_term.
+%% @private initiate EMQX edition info in persistent_term.
put_edition() ->
ok = put_edition(get_edition()).
diff --git a/apps/emqx/src/emqx_schema.erl b/apps/emqx/src/emqx_schema.erl
index a7be853bf..fb067e36c 100644
--- a/apps/emqx/src/emqx_schema.erl
+++ b/apps/emqx/src/emqx_schema.erl
@@ -119,7 +119,7 @@ For per-listener overrides see authentication
in listener configs
-EMQ X can be configured with:
+EMQX can be configured with:
[]: The default value, it allows *ALL* logins
@@ -134,7 +134,7 @@ per the configured order, until an 'allow' or 'deny' decision can be made.
If there is no decision after a full chain exhaustion, the login is rejected.
""")}
%% NOTE: authorization schema here is only to keep emqx app prue
- %% the full schema for EMQ X node is injected in emqx_conf_schema.
+ %% the full schema for EMQX node is injected in emqx_conf_schema.
, {"authorization",
sc(ref("authorization"),
#{})}
@@ -1200,7 +1200,7 @@ common_ssl_opts_schema(Defaults) ->
"""Trusted PEM format CA certificates bundle file.
The certificates in this file are used to verify the TLS peer's certificates.
Append new certificates to the file if new CAs are to be trusted.
-There is no need to restart EMQ X to have the updated file loaded, because
+There is no need to restart EMQX to have the updated file loaded, because
the system regularly checks if file has been updated (and reload).
NOTE: invalidating (deleting) a certificate from the file will not affect
already established connections.
@@ -1400,7 +1400,7 @@ Selecting a good cipher suite is critical for the
application's data security, confidentiality and performance.
The names should be in OpenSSL string format (not RFC format).
-All default values and examples provided by EMQ X config
+All default values and examples provided by EMQX config
documentation are all in OpenSSL format.
NOTE: Certain cipher suites are only compatible with
diff --git a/apps/emqx/test/emqx_proper_types.erl b/apps/emqx/test/emqx_proper_types.erl
index 4f54b9fed..245dfc990 100644
--- a/apps/emqx/test/emqx_proper_types.erl
+++ b/apps/emqx/test/emqx_proper_types.erl
@@ -14,7 +14,7 @@
%% limitations under the License.
%%--------------------------------------------------------------------
-%% The proper types extension for EMQ X
+%% The proper types extension for EMQX
-module(emqx_proper_types).
diff --git a/apps/emqx_authn/src/emqx_authn_schema.erl b/apps/emqx_authn/src/emqx_authn_schema.erl
index b2573977d..46c410b25 100644
--- a/apps/emqx_authn/src/emqx_authn_schema.erl
+++ b/apps/emqx_authn/src/emqx_authn_schema.erl
@@ -48,7 +48,7 @@ config_refs(Modules) ->
%% authn is a core functionality however implemented outside of emqx app
%% in emqx_schema, 'authentication' is a map() type which is to allow
-%% EMQ X more pluggable.
+%% EMQX more pluggable.
root_type() ->
hoconsc:array(authenticator_type()).
diff --git a/apps/emqx_authz/src/emqx_authz_schema.erl b/apps/emqx_authz/src/emqx_authz_schema.erl
index b5bee052f..c29dd67c9 100644
--- a/apps/emqx_authz/src/emqx_authz_schema.erl
+++ b/apps/emqx_authz/src/emqx_authz_schema.erl
@@ -96,11 +96,11 @@ fields(file) ->
, {path, #{type => string(),
desc => """
Path to the file which contains the ACL rules.
-If the file provisioned before starting EMQ X node,
-it can be placed anywhere as long as EMQ X has read access to it.
+If the file provisioned before starting EMQX node,
+it can be placed anywhere as long as EMQX has read access to it.
-In case the rule-set is created from EMQ X dashboard or management API,
-the file will be placed in `authz` sub directory inside EMQ X's `data_dir`,
+In case the rule-set is created from EMQX dashboard or management API,
+the file will be placed in `authz` sub directory inside EMQX's `data_dir`,
and the new rules will override all rules from the old config file.
"""
}}
diff --git a/apps/emqx_conf/include/emqx_conf.hrl b/apps/emqx_conf/include/emqx_conf.hrl
index d0206ec9e..87c457f40 100644
--- a/apps/emqx_conf/include/emqx_conf.hrl
+++ b/apps/emqx_conf/include/emqx_conf.hrl
@@ -1,6 +1,6 @@
--ifndef(EMQ_X_CONF_HRL).
--define(EMQ_X_CONF_HRL, true).
+-ifndef(EMQX_CONF_HRL).
+-define(EMQX_CONF_HRL, true).
-define(CLUSTER_RPC_SHARD, emqx_cluster_rpc_shard).
diff --git a/apps/emqx_conf/src/emqx_conf.erl b/apps/emqx_conf/src/emqx_conf.erl
index 13f298731..daf9a48a6 100644
--- a/apps/emqx_conf/src/emqx_conf.erl
+++ b/apps/emqx_conf/src/emqx_conf.erl
@@ -140,7 +140,7 @@ dump_schema(Dir) ->
-spec gen_doc(file:name_all()) -> ok.
gen_doc(File) ->
Version = emqx_release:version(),
- Title = "# EMQ X " ++ Version ++ " Configuration",
+ Title = "# EMQX " ++ Version ++ " Configuration",
BodyFile = filename:join([code:lib_dir(emqx_conf), "etc", "emqx_conf.md"]),
{ok, Body} = file:read_file(BodyFile),
Doc = hocon_schema_md:gen(emqx_conf_schema, #{title => Title, body => Body}),
diff --git a/apps/emqx_conf/src/emqx_conf_schema.erl b/apps/emqx_conf/src/emqx_conf_schema.erl
index aaf1966bd..769f11aba 100644
--- a/apps/emqx_conf/src/emqx_conf_schema.erl
+++ b/apps/emqx_conf/src/emqx_conf_schema.erl
@@ -41,7 +41,7 @@
%% Static apps which merge their configs into the merged emqx.conf
%% The list can not be made a dynamic read at run-time as it is used
-%% by nodetool to generate app.