Update ejabberd configuration file.
This commit is contained in:
parent
7b11c0c129
commit
6912f47b67
@ -1,20 +1,23 @@
|
|||||||
# Inferencium
|
# Inferencium - xb000-0
|
||||||
# ejabberd - Configuration
|
# ejabberd - Configuration
|
||||||
|
|
||||||
# Copyright 2022-2023 Inference
|
# Copyright 2022-2023 Jake Winters
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
# Version: 0.0.0.0
|
# Version: 2.0.0.3
|
||||||
|
|
||||||
|
|
||||||
# Hosts
|
# Hosts
|
||||||
hosts:
|
hosts:
|
||||||
- inferencium.net
|
- inferencium.net
|
||||||
|
- dissensionclub.net
|
||||||
|
|
||||||
# Hosts configuration
|
# Hosts configuration
|
||||||
host_config:
|
host_config:
|
||||||
inferencium.net:
|
inferencium.net:
|
||||||
auth_method: internal
|
auth_method: internal
|
||||||
|
dissensionclub.net:
|
||||||
|
auth_method: internal
|
||||||
|
|
||||||
# Language
|
# Language
|
||||||
language: en
|
language: en
|
||||||
@ -50,7 +53,7 @@ allow_multiple_connections: false
|
|||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
loglevel: info
|
loglevel: info
|
||||||
hide_sensitive_log_data: false
|
hide_sensitive_log_data: true
|
||||||
|
|
||||||
# Certificates
|
# Certificates
|
||||||
certfiles:
|
certfiles:
|
||||||
@ -91,6 +94,12 @@ listen:
|
|||||||
/captcha: ejabberd_captcha
|
/captcha: ejabberd_captcha
|
||||||
/upload: mod_http_upload
|
/upload: mod_http_upload
|
||||||
/ws: ejabberd_http_ws
|
/ws: ejabberd_http_ws
|
||||||
|
custom_headers:
|
||||||
|
"Access-Control-Allow-Origin": "*"
|
||||||
|
"Access-Control-Allow-Methods": "GET,HEAD,OPTIONS,PUT"
|
||||||
|
"Access-Control-Allow-Headers": "Authorization"
|
||||||
|
"Access-Control-Allow-Headers": "Content-Type, Origin, X-Requested-Width"
|
||||||
|
"Access-Control-Allow-Credentials": "true"
|
||||||
-
|
-
|
||||||
port: 5280
|
port: 5280
|
||||||
ip: "::"
|
ip: "::"
|
||||||
@ -198,12 +207,19 @@ modules:
|
|||||||
mod_fail2ban: {}
|
mod_fail2ban: {}
|
||||||
mod_http_api: {}
|
mod_http_api: {}
|
||||||
mod_http_upload:
|
mod_http_upload:
|
||||||
|
name: HTTP File Upload
|
||||||
|
access: local
|
||||||
custom_headers:
|
custom_headers:
|
||||||
"Access-Control-Allow-Origin": "https://@HOST@"
|
"Access-Control-Allow-Origin": "*"
|
||||||
"Access-Control-Allow-Methods": "GET,HEAD,PUT,OPTIONS"
|
#"Access-Control-Allow-Origin": "https://@HOST@"
|
||||||
|
"Access-Control-Allow-Methods": "GET,HEAD,OPTIONS,PUT"
|
||||||
"Access-Control-Allow-Headers": "Content-Type"
|
"Access-Control-Allow-Headers": "Content-Type"
|
||||||
|
docroot: /var/lib/ejabberd/upload/@HOST@
|
||||||
|
dir_mode: "2750"
|
||||||
|
file_mode: "0640"
|
||||||
max_size: 67108864
|
max_size: 67108864
|
||||||
put_url: https://@HOST@:5443/upload
|
put_url: https://@HOST@:5443/upload
|
||||||
|
thumbnail: false
|
||||||
mod_last: {}
|
mod_last: {}
|
||||||
mod_mam:
|
mod_mam:
|
||||||
assume_mam_usage: true
|
assume_mam_usage: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user