Commit 69881cf8 authored by Ave's avatar Ave 🤔

Add website files, improve readme

parent 7e94f31d
......@@ -2,7 +2,20 @@
a3.pm is an ejabberd instance that intends to be up to date, with as many stock ejabberd features enabled as possible to give the best possible user experience.
This repo contains the config file with minimal differences (we don't commit passwords etc, see comments that say `lavatech` to find those).
This repo contains the config file with minimal differences (we don't commit passwords etc, see comments that say `lavatech` to find those) and the website files.
Please keep in mind that we often make use of features that are only available in the latest ejabberd version, so it might not be possible to run the config on anything before the latest release. Also, we use PostgreSQL, so you'll need to import at least [the base scheme](https://github.com/processone/ejabberd/blob/master/sql/pg.new.sql) to be able to run this properly.
If you're moving data from an existing instance to postgresql, you might be interested in [`ejd2sql:export(<<"hostname">>, sql)`](https://docs.ejabberd.im/admin/databases/mysql/#migrating-data-from-internal-database-to-mysql) (this is what I used as other one kept timing out) or [`ejabberdctl export2sql hostname filename`](https://docs.ejabberd.im/admin/guide/managing/#list-of-ejabberd-commands).
---
### Licenses
The config is released under GNU General Public License v2.0 as the config file we're basing this on (ejabberd default) is using that license.
Under `website/`:
- The `conversejs.html` file is released under GPLv2 license, by @ao.
- The `xmpp.html` and `lavaxmpp.css` files are released under GPLv2, by @slcx.
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<link rel="stylesheet" type="text/css" media="screen" href="https://cdn.conversejs.org/css/converse.min.css">
<script src="https://cdn.conversejs.org/dist/converse.min.js" charset="utf-8"></script>
<title>a3.pm Converse.js</title>
</head>
<body></body>
<script>
converse.initialize({
bosh_service_url: 'https://x.a3.pm:5281/http-bind',
view_mode: 'fullscreen',
auto_join_rooms: ['main@conference.a3.pm'],
default_domain: 'a3.pm',
registration_domain: 'a3.pm',
use_system_emojis: false,
emoji_image_path: 'https://mutant.lavatech.top/'
});
</script>
</html>
html, body {
background: white;
color: #333;
font: 16px/1.5 system-ui, sans-serif;
box-sizing: border-box;
}
a {
color: hsla(225, 100%, 75%, 1);
}
.score {
padding: 0.1em 0.2em;
border-radius: 0.25rem;
background-color: hsla(40, 100%, 75%, 1);
font-weight: bold;
}
*, *:before, *:after {
box-sizing: inherit;
}
.check {
display: inline-block;
text-align: center;
font-size: 0.45rem;
background-color: hsla(120, 100%, 90%, 1);
padding: 3px 4px;
border-radius: 100%;
vertical-align: text-bottom;
}
body {
padding: 2rem;
}
h1:first-child {
margin-top: 0;
}
main {
max-width: 50rem;
margin: 0 auto;
display: grid;
grid-gap: 2rem;
grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 700px) {
main {
display: block !important;
}
}
<!doctype html>
<html lang=en-US>
<head>
<meta charset=utf-8>
<meta name=viewport content='width=device-width, initial-scale=1, shrink-to-fit=no'>
<title>LavaTech XMPP</title>
<meta name=description content='LavaTech XMPP server'>
<link rel=stylesheet href=css/lavaxmpp.css>
</head>
<body>
<main>
<article>
<h1>LavaTech XMPP</h1>
<p>A public XMPP server managed by Ave and Luna.</p>
<ul>
<li>
ejabberd 18.12
</li>
<li>
Scores <span class=score>15/15</span> on the
<a href=https://compliance.conversations.im/server/a3.pm/ rel=noreferrer target=_blank>
XMPP Compliance Suite
</a>
</li>
<li><span class=check>&#10004;</span> In-band registration</li>
[22/5368]
<li><span class=check>&#10004;</span> Multi User Chat</li>
<li><span class=check>&#10004;</span> Message Carbons</li>
<li><span class=check>&#10004;</span> HTTP File Upload</li>
<li><span class=check>&#10004;</span> OMEMO</li>
<li>And more...</li>
</ul>
<p>
Send complaints to <a href=xmpp:a@a3.pm>a@a3.pm</a> or <a href=xmpp:l@a3.pm>l@a3.pm</a> on XMPP
or <a href=mailto:xmppabuse@ave.zone>xmppabuse@ave.zone</a>.
</p>
<p>
<a href=https://a3.pm/conversejs.html target=_blank rel=noreferrer>Chat on your browser with converse.js</a>
</p>
<p>
Our configuration is available
<a href=https://gitlab.com/lavatech/a3.pm target=_blank rel=noreferrer>here</a>.
</p>
<p>
<a href=https://xmpp.net/result.php?domain=a3.pm&amp;type=server target=_blank rel=noreferrer>
<img src=https://xmpp.net/badge.php?domain=a3.pm alt='xmpp.net score'/>
</a>
</p>
<p>
<a href='https://compliance.conversations.im/server/a3.pm'>
<img src='https://compliance.conversations.im/badge/a3.pm'>
</a>
</p>
</article>
<aside class=rules>
<h2>Rules</h2>
<ul>
<li>Follow the LavaTech Services Agreement
<a href="https://gitlab.com/lavatech/servicesagreement">here</a>
</li>
<li>Don't be an asshole.</li>
<li>Don't be a nazi.</li>
<li>Don't break any Finnish, Brazilian, Turkish, (wherever you live) laws.</li>
<li>Don't abuse our services.</li>
<li>Don't do any attacks or any pentesting (without explicit approval from staff).</li>
</ul>
<p>
If you do not agree to follow these rules, then please don't register.
If you did register already, stop using this service and delete your account.
</p>
</aside>
</main>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment