aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
-rw-r--r--ejabberd.yml.example7
2 files changed, 9 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 2d98f62f1..52239313d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -213,12 +213,12 @@ AC_ARG_ENABLE(system_deps,
esac],[if test "x$system_deps" = "x"; then system_deps=false; fi])
AC_ARG_ENABLE(stun,
-[AC_HELP_STRING([--enable-stun], [enable STUN/TURN support (default: no)])],
+[AC_HELP_STRING([--enable-stun], [enable STUN/TURN support (default: yes)])],
[case "${enableval}" in
yes) stun=true ;;
no) stun=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-stun) ;;
-esac],[if test "x$stun" = "x"; then stun=false; fi])
+esac],[if test "x$stun" = "x"; then stun=true; fi])
AC_ARG_ENABLE(sip,
[AC_HELP_STRING([--enable-sip], [enable SIP support (default: no)])],
diff --git a/ejabberd.yml.example b/ejabberd.yml.example
index 57f7fef12..eeba1f9c5 100644
--- a/ejabberd.yml.example
+++ b/ejabberd.yml.example
@@ -58,6 +58,13 @@ listen:
/admin: ejabberd_web_admin
/.well-known/acme-challenge: ejabberd_acme
-
+ port: 3478
+ transport: udp
+ module: ejabberd_stun
+ use_turn: true
+ ## The server's public IPv4 address:
+ # turn_ip: 203.0.113.3
+ -
port: 1883
ip: "::"
module: mod_mqtt