Skip to content

Commit

Permalink
Further improvements to ejabberd v18.04 config
Browse files Browse the repository at this point in the history
Removed all deprecated instances of "certfile"
Definitively updated resend_on_timeout config
  • Loading branch information
Nicolas North committed Jun 3, 2018
1 parent 14da108 commit f064fab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.
22 changes: 3 additions & 19 deletions conf/ejabberd/ejabberd-18.04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,13 @@ certfiles:
### to enable state-of-the-art, NOT backwards-compatible TLS encryption
### [breaking all bridges with legacy servers and therefore the rest of XMPP community]
### simply set: | s2s_protocol_options: 'TLSOPTS' | and | s2s_ciphers: 'CIPHERS' |

###. ===============
###' LISTENING PORTS


define_macro:

'CERTFILE': "/etc/ssl/aenigma/hostname.pem"
'XUCERTFILE': "/etc/ssl/aenigma/xu.pem"
'DHFILE': "/etc/ssl/aenigma/dh.pem"
'CIPHERS': "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH"
'S2SCIPHERS': "HIGH:!MEDIUM:!LOW:!3DES:!CAMELLIA:!aNULL@STRENGTH"
Expand All @@ -78,7 +77,6 @@ listen:
ip: "::"
module: ejabberd_c2s
starttls: true
certfile: 'CERTFILE'
protocol_options: 'TLSOPTS'
dhfile: 'DHFILE'
ciphers: 'CIPHERS'
Expand All @@ -87,12 +85,10 @@ listen:
max_stanza_size: 65536
shaper: c2s_shaper
access: c2s
resend_on_timeout: if_offline
-
port: 5223
ip: "::"
module: ejabberd_c2s
certfile: 'CERTFILE'
protocol_options: 'TLSOPTS'
dhfile: 'DHFILE'
ciphers: 'CIPHERS'
Expand All @@ -101,7 +97,6 @@ listen:
max_stanza_size: 65536
shaper: c2s_shaper
access: c2s
resend_on_timeout: if_offline
-
port: 5269
ip: "::"
Expand All @@ -122,6 +117,7 @@ listen:
http_bind: true
## register: true
captcha: false

## -
## port: 8888
## ip: "::"
Expand All @@ -144,13 +140,11 @@ listen:
## "sms.example.org":
## password: "secret"


## -
## port: 3478
## transport: udp
## module: ejabberd_stun


## -
## port: 4560
## ip: "::"
Expand All @@ -162,15 +156,13 @@ listen:
## commands: all
## options: []


-
port: 5444
ip: "::"
module: ejabberd_http
request_handlers:
"": mod_http_upload
tls: true
certfile: 'XUCERTFILE'
protocol_options: 'TLSOPTS'
dhfile: 'DHFILE'
ciphers: 'CIPHERS'
Expand All @@ -180,19 +172,11 @@ disable_sasl_mechanisms: "digest-md5"
###. ==================
###' S2S GLOBAL OPTIONS


s2s_use_starttls: required
s2s_certfile: 'CERTFILE'
s2s_dhfile: 'DHFILE'
s2s_protocol_options: 'S2STLSOPTS'
s2s_ciphers: 'S2SCIPHERS'

## host_config:
## "example.org":
## domain_certfile: "/path/to/example_org.pem"
## "example.com":
## domain_certfile: "/path/to/example_com.pem"

## aenigma_host_config_domain_placeholder_start:
## aenigma_host_config_domain_placeholder_end:

Expand Down Expand Up @@ -560,7 +544,7 @@ modules:
mod_avatar: {}
mod_version: {}
mod_stream_mgmt:
resend_on_timeout: true
resend_on_timeout: if_offline
mod_mam:
default: always
cache_size: 1048576
Expand Down
4 changes: 2 additions & 2 deletions conf/nginx/letsencrypt-ejabberd-post-renewal-hook
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ do

le_cert_domain="$(echo $le_cert_domain_full | sed 's:.*/::')"

echo "Now creating all-in-one TLS file for $le_cert_domain for ejabberd..."
echo "Now creating all-in-one TLS file for $le_cert_domain..."
echo

touch "$tls_dir/$le_cert_domain.pem"
cat "$le_dir/$le_cert_domain/privkey.pem" > "$tls_dir/$le_cert_domain.pem"
cat "$le_dir/$le_cert_domain/fullchain.pem" >> "$tls_dir/$le_cert_domain.pem"

echo "Finished creating all-in-one TLS file for $le_cert_domain for ejabberd."
echo "Finished creating all-in-one TLS file for $le_cert_domain."
echo

done
Expand Down
1 change: 0 additions & 1 deletion functions
Original file line number Diff line number Diff line change
Expand Up @@ -1361,7 +1361,6 @@ perform_installation() {

cp "$source_dir/conf/nginx/letsencrypt-ejabberd-post-renewal-hook" "/etc/letsencrypt/renewal-hooks/post"

echo
bash "/etc/letsencrypt/renewal-hooks/post/letsencrypt-ejabberd-post-renewal-hook"

### Restart nginx
Expand Down

0 comments on commit f064fab

Please sign in to comment.