|
|
@ -1,4 +1,5 @@ |
|
|
|
admins = { "{{ .Env.JICOFO_AUTH_USER }}@{{ .Env.XMPP_AUTH_DOMAIN }}" } |
|
|
|
admins = { "{{ .Env.JICOFO_AUTH_USER }}@{{ .Env.XMPP_AUTH_DOMAIN }}" } |
|
|
|
|
|
|
|
plugin_paths = { "/prosody-plugins-custom" } |
|
|
|
|
|
|
|
|
|
|
|
VirtualHost "{{ .Env.XMPP_DOMAIN }}" |
|
|
|
VirtualHost "{{ .Env.XMPP_DOMAIN }}" |
|
|
|
{{ if .Env.ENABLE_AUTH }} |
|
|
|
{{ if .Env.ENABLE_AUTH }} |
|
|
@ -7,13 +8,16 @@ VirtualHost "{{ .Env.XMPP_DOMAIN }}" |
|
|
|
authentication = "anonymous" |
|
|
|
authentication = "anonymous" |
|
|
|
{{ end }} |
|
|
|
{{ end }} |
|
|
|
ssl = { |
|
|
|
ssl = { |
|
|
|
key = "/config/certs/{{ .Env.XMPP_DOMAIN }}.key"; |
|
|
|
key = "/config/certs/{{ .Env.XMPP_DOMAIN }}.key"; |
|
|
|
certificate = "/config/certs/{{ .Env.XMPP_DOMAIN }}.crt"; |
|
|
|
certificate = "/config/certs/{{ .Env.XMPP_DOMAIN }}.crt"; |
|
|
|
} |
|
|
|
} |
|
|
|
modules_enabled = { |
|
|
|
modules_enabled = { |
|
|
|
"bosh"; |
|
|
|
"bosh"; |
|
|
|
"pubsub"; |
|
|
|
"pubsub"; |
|
|
|
"ping"; |
|
|
|
"ping"; |
|
|
|
|
|
|
|
{{ if .Env.XMPP_MODULES }} |
|
|
|
|
|
|
|
"{{ join "\";\n\"" (splitList "," .Env.XMPP_MODULES) }}"; |
|
|
|
|
|
|
|
{{ end }} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
c2s_require_encryption = false |
|
|
|
c2s_require_encryption = false |
|
|
@ -33,13 +37,21 @@ VirtualHost "{{ .Env.XMPP_AUTH_DOMAIN }}" |
|
|
|
|
|
|
|
|
|
|
|
Component "{{ .Env.XMPP_INTERNAL_MUC_DOMAIN }}" "muc" |
|
|
|
Component "{{ .Env.XMPP_INTERNAL_MUC_DOMAIN }}" "muc" |
|
|
|
modules_enabled = { |
|
|
|
modules_enabled = { |
|
|
|
"ping"; |
|
|
|
"ping"; |
|
|
|
|
|
|
|
{{ if .Env.XMPP_INTERNAL_MUC_MODULES }} |
|
|
|
|
|
|
|
"{{ join "\";\n\"" (splitList "," .Env.XMPP_INTERNAL_MUC_MODULES) }}"; |
|
|
|
|
|
|
|
{{ end }} |
|
|
|
} |
|
|
|
} |
|
|
|
storage = "internal" |
|
|
|
storage = "internal" |
|
|
|
muc_room_cache_size = 1000 |
|
|
|
muc_room_cache_size = 1000 |
|
|
|
|
|
|
|
|
|
|
|
Component "{{ .Env.XMPP_MUC_DOMAIN }}" "muc" |
|
|
|
Component "{{ .Env.XMPP_MUC_DOMAIN }}" "muc" |
|
|
|
storage = "internal" |
|
|
|
storage = "internal" |
|
|
|
|
|
|
|
modules_enabled = { |
|
|
|
|
|
|
|
{{ if .Env.XMPP_MUC_MODULES }} |
|
|
|
|
|
|
|
"{{ join "\";\n\"" (splitList "," .Env.XMPP_MUC_MODULES) }}"; |
|
|
|
|
|
|
|
{{ end }} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Component "focus.{{ .Env.XMPP_DOMAIN }}" |
|
|
|
Component "focus.{{ .Env.XMPP_DOMAIN }}" |
|
|
|
component_secret = "{{ .Env.JICOFO_COMPONENT_SECRET }}" |
|
|
|
component_secret = "{{ .Env.JICOFO_COMPONENT_SECRET }}" |
|
|
|