Browse Source

added conf.d

root 3 years ago
parent
commit
aee87b6e8e

+ 3 - 0
EXTRAS/example-configurations/conf.d/10-macros.yml

@@ -0,0 +1,3 @@
+define_macro:
+  HOSTNAME: vc.s-up.net
+  IP_ADDRESS: 185.84.80.66

+ 3 - 0
EXTRAS/example-configurations/conf.d/15-log.yml

@@ -0,0 +1,3 @@
+log_rotate_count: 0 #number of logs to retain
+log_rotate_size: 1048576 #log size in bytes
+loglevel: info #none,emergency,alert,critical,error,warning,notice,info,debug 

+ 2 - 0
EXTRAS/example-configurations/conf.d/20-hosts.yml

@@ -0,0 +1,2 @@
+hosts:
+  - HOSTNAME

+ 52 - 0
EXTRAS/example-configurations/conf.d/50-stun-turn.yml

@@ -0,0 +1,52 @@
+#include_config_file:
+#  ./macro.yml
+
+listen:
+  -
+    port: 3478
+    transport: udp
+    module: ejabberd_stun
+    use_turn: true
+    turn_min_port: 49152
+    turn_max_port: 65535
+    ## The server's public IPv4 address:
+    turn_ipv4_address: IP_ADDRESS
+  -
+    port: 5349
+    transport: tcp
+    module: ejabberd_stun
+    use_turn: true
+    tls: true
+    turn_min_port: 49152
+    turn_max_port: 65535
+#    ip: IP_ADDRESS
+    turn_ipv4_address: IP_ADDRESS
+
+modules:
+  mod_stun_disco:
+    credentials_lifetime: 12h
+    services:
+        -
+          host: IP_ADDRESS
+          port: 3478
+          type: stun
+          transport: udp
+          restricted: false
+        -
+          host: IP_ADDRESS
+          port: 3478
+          type: turn
+          transport: udp
+          restricted: true
+        -
+          host: HOSTNAME
+          port: 5349
+          type: stuns
+          transport: tcp
+          restricted: false
+        -
+          host: HOSTNAME
+          port: 5349
+          type: turns
+          transport: tcp
+          restricted: true