Add converse.js as web client

This commit is contained in:
2022-07-02 15:12:41 +02:00
parent c0519dd6a8
commit e1ec4b9a8d
4 changed files with 13 additions and 5 deletions

View File

@ -96,6 +96,7 @@ modules_enabled = {
"conversejs"; "conversejs";
"http_altconnect"; "http_altconnect";
"external_services"; "external_services";
"conversejs";
} }
-- These modules are auto-loaded, but should you want -- These modules are auto-loaded, but should you want
@ -287,8 +288,15 @@ external_services = {
secret = "YOUR_SECRET" secret = "YOUR_SECRET"
} }
} }
cross_domain_bosh = true conversejs_resources = "/srv/conversejs/dist";
cross_domain_websocket = true 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" VirtualHost "danwin1210.de"

View File

@ -7,7 +7,7 @@
<link rel="canonical" href="https://danwin1210.de/mail/"> <link rel="canonical" href="https://danwin1210.de/mail/">
</head><body> </head><body>
<main> <main>
<p>Info | <a href="/mail/register.php">Register</a> | <a href="/mail/squirrelmail/src/login.php" target="_blank">Webmail-Login</a> | <a href="/mail/manage_account.php">Manage account</a></p> <p>Info | <a href="/mail/register.php">Register</a> | <a href="/mail/squirrelmail/src/login.php" target="_blank">Webmail-Login</a> | <a href="/mail/manage_account.php">Manage account</a> | <a href="https://danwin1210.de:5281/conversejs" target="_blank" rel="noopener">Web-XMPP</a></p>
<h2>What you will get</h2> <h2>What you will get</h2>
<p>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).</p> <p>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).</p>
<p>You will have 50MB of disk space available for your mails. If you desperately need more space, just <a href="/contact.php">contact me</a>. Your E-Mail address will be user@danwin1210.de</p> <p>You will have 50MB of disk space available for your mails. If you desperately need more space, just <a href="/contact.php">contact me</a>. Your E-Mail address will be user@danwin1210.de</p>

View File

@ -237,7 +237,7 @@ if ( ! empty( $_SESSION[ 'email_user' ] ) ){ ?>
<button name="action" value="logout" type="submit">Logout</button> <button name="action" value="logout" type="submit">Logout</button>
<?php } else { ?> <?php } else { ?>
| Manage account<?php | Manage account<?php
} ?></p> } ?> | <a href="https://danwin1210.de:5281/conversejs" target="_blank" rel="noopener">Web-XMPP</a></p>
<?php if ( ! empty( $_SESSION[ 'email_user' ] ) ){ ?></form><?php } <?php if ( ! empty( $_SESSION[ 'email_user' ] ) ){ ?></form><?php }
echo "<p>$msg</p>"; echo "<p>$msg</p>";
if ( empty( $_SESSION[ 'email_user' ] ) ) { ?> if ( empty( $_SESSION[ 'email_user' ] ) ) { ?>

View File

@ -81,7 +81,7 @@ if ( isset( $_POST[ 'user' ] ) ) {
<body> <body>
<main> <main>
<p><a href="/mail/">Info</a> | Register | <a href="/mail/squirrelmail/src/login.php" target="_blank">Webmail-Login</a> | <p><a href="/mail/">Info</a> | Register | <a href="/mail/squirrelmail/src/login.php" target="_blank">Webmail-Login</a> |
<a href="/mail/manage_account.php">Manage account</a></p> <a href="/mail/manage_account.php">Manage account</a> | <a href="https://danwin1210.de:5281/conversejs" target="_blank" rel="noopener">Web-XMPP</a></p>
<?php echo "<p>$msg</p>"; ?> <?php echo "<p>$msg</p>"; ?>
<form class="form_limit" action="register.php" method="post"><input type="hidden" name="csrf_token" <form class="form_limit" action="register.php" method="post"><input type="hidden" name="csrf_token"
value="<?php echo $_SESSION[ 'csrf_token' ] ?>"> value="<?php echo $_SESSION[ 'csrf_token' ] ?>">