From e1ec4b9a8d69ae785605e5b1656651650d7ce7a3 Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Sat, 2 Jul 2022 15:12:41 +0200 Subject: [PATCH] Add converse.js as web client --- etc/prosody/prosody.cfg.lua | 12 ++++++++++-- www/index.php | 2 +- www/manage_account.php | 2 +- www/register.php | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/etc/prosody/prosody.cfg.lua b/etc/prosody/prosody.cfg.lua index 09089e1..f5ddf76 100644 --- a/etc/prosody/prosody.cfg.lua +++ b/etc/prosody/prosody.cfg.lua @@ -96,6 +96,7 @@ modules_enabled = { "conversejs"; "http_altconnect"; "external_services"; + "conversejs"; } -- These modules are auto-loaded, but should you want @@ -287,8 +288,15 @@ external_services = { secret = "YOUR_SECRET" } } -cross_domain_bosh = true -cross_domain_websocket = true +conversejs_resources = "/srv/conversejs/dist"; +conversejs_options = { + view_mode = "fullscreen"; + allow_non_roster_messaging = true; + clear_cache_on_logout = true; + default_domain = "danwin1210.de"; + enable_smacks = true; + muc_domain = "conference.danwin1210.de"; +} VirtualHost "danwin1210.de" diff --git a/www/index.php b/www/index.php index 09972b9..4f1f2ef 100644 --- a/www/index.php +++ b/www/index.php @@ -7,7 +7,7 @@
-

Info | Register | Webmail-Login | Manage account

+

Info | Register | Webmail-Login | Manage account | Web-XMPP

What you will get

You get a free anonymous E-Mail address and an XMPP/Jabber account using the same details. Your Jabber ID is user@danwin1210.de and can be connected to directly from clearnet or via TOR hidden service (danielas3rtn54uwmofdo3x2bsdifr47huasnmbgqzfrec5ubupvtpid.onion).

You will have 50MB of disk space available for your mails. If you desperately need more space, just contact me. Your E-Mail address will be user@danwin1210.de

diff --git a/www/manage_account.php b/www/manage_account.php index 60e8170..a2e8164 100644 --- a/www/manage_account.php +++ b/www/manage_account.php @@ -237,7 +237,7 @@ if ( ! empty( $_SESSION[ 'email_user' ] ) ){ ?> | Manage account

+ } ?> | Web-XMPP

$msg

"; if ( empty( $_SESSION[ 'email_user' ] ) ) { ?> diff --git a/www/register.php b/www/register.php index 1d33419..f5e57e1 100644 --- a/www/register.php +++ b/www/register.php @@ -81,7 +81,7 @@ if ( isset( $_POST[ 'user' ] ) ) {

Info | Register | Webmail-Login | - Manage account

+ Manage account | Web-XMPP

$msg

"; ?>