[Ejabberd] Various fixes, sorry (still WIP)
parent
462aa0a764
commit
38c5470d54
|
@ -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 \
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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'])) {
|
||||||
|
|
Loading…
Reference in New Issue