prosody: use ENABLE_IPV6 environment variable

Fixes: #1337
pull/1344/head
Michel Pawlak 2 years ago committed by GitHub
parent be8c41f79e
commit b2241315ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      docker-compose.yml
  2. 10
      prosody/rootfs/defaults/prosody.cfg.lua

@ -159,6 +159,7 @@ services:
- ENABLE_AV_MODERATION
- ENABLE_BREAKOUT_ROOMS
- ENABLE_GUESTS
- ENABLE_IPV6
- ENABLE_LOBBY
- ENABLE_RECORDING
- ENABLE_XMPP_WEBSOCKET

@ -1,5 +1,6 @@
{{ $LOG_LEVEL := .Env.LOG_LEVEL | default "info" }}
{{ $XMPP_PORT := .Env.XMPP_PORT | default "5222" -}}
{{ $ENABLE_IPV6 := .Env.ENABLE_IPV6 | default "true" | toBool -}}
-- Prosody Example Configuration File
--
@ -113,6 +114,11 @@ c2s_require_encryption = false
-- set c2s port
c2s_ports = { {{ $XMPP_PORT }} } -- Listen on specific c2s port
{{ if $ENABLE_IPV6 }}
c2s_interfaces = { "*", "::" }
{{ else }}
c2s_interfaces = { "*" }
{{ end }}
-- Force certificate authentication for server-to-server connections?
-- This provides ideal security, but requires servers you communicate
@ -180,7 +186,11 @@ unbound = {
}
http_ports = { 5280 }
{{ if $ENABLE_IPV6 }}
http_interfaces = { "*", "::" }
{{ else }}
http_interfaces = { "*" }
{{ end }}
data_path = "/config/data"

Loading…
Cancel
Save