[Ejabberd] Various fixes, sorry (still WIP)

master
andryyy 2021-02-11 21:09:46 +01:00
parent 462aa0a764
commit 38c5470d54
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
3 changed files with 11 additions and 2 deletions

View File

@ -27,11 +27,16 @@ chown -R root:root /var/www/authentication
[ ! -f /sqlite/sqlite.db ] && cp /sqlite/sqlite_template.db /sqlite/sqlite.db [ ! -f /sqlite/sqlite.db ] && cp /sqlite/sqlite_template.db /sqlite/sqlite.db
[ ! -d /ejabberd_ssl ] && mkdir /ejabberd_ssl
cp /ssl/cert.pem /ejabberd_ssl/cert.pem
cp /ssl/key.pem /ejabberd_ssl/key.pem
# Write access to upload directory and log file for authenticator # Write access to upload directory and log file for authenticator
touch /var/www/authentication/auth.log touch /var/www/authentication/auth.log
chown -R ejabberd:ejabberd /var/www/upload \ chown -R ejabberd:ejabberd /var/www/upload \
/var/www/authentication/auth.log \ /var/www/authentication/auth.log \
/sqlite /sqlite \
/ejabberd_ssl
# ACL file for vhosts, hosts file for vhosts # ACL file for vhosts, hosts file for vhosts
touch /ejabberd/ejabberd_acl.yml \ touch /ejabberd/ejabberd_acl.yml \

View File

@ -34,6 +34,10 @@ sql_type: sqlite
sql_database: /sqlite/sqlite.db sql_database: /sqlite/sqlite.db
default_db: sql default_db: sql
certfiles:
- /ejabberd_ssl/cert.pem
- /ejabberd_ssl/key.pem
listen: listen:
- -
port: 5222 port: 5222

View File

@ -108,7 +108,7 @@ $xmpp_status = xmpp_control('status');
<?php <?php
if ($xmpp_status !== false) { if ($xmpp_status !== false) {
?> ?>
<p><?=$lang['debug']['online_users'];?>: <?=$xmpp_status['onlineusers'];?></p> <p><?=$lang['debug']['online_users'];?>: <?=(empty($xmpp_status['onlineusers'])) ? '-' : $xmpp_status['onlineusers'];?></p>
<p><?=$lang['debug']['started_at'];?>: <span class="parse_s_ago"><?=$xmpp_status['uptimeseconds'];?></span></p> <p><?=$lang['debug']['started_at'];?>: <span class="parse_s_ago"><?=$xmpp_status['uptimeseconds'];?></span></p>
<?php <?php
if (!empty($xmpp_status['muc_online_rooms'])) { if (!empty($xmpp_status['muc_online_rooms'])) {