Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
nioc committed Nov 1, 2019
0 parents commit dca5d75
Show file tree
Hide file tree
Showing 25 changed files with 13,787 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.DS_Store
node_modules
/dist

# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
xmpp-web.code-workspace
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# XMPP Web

[![license: AGPLv3](https://img.shields.io/badge/license-AGPLv3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
[![GitHub release](https://img.shields.io/github/release/nioc/xmpp-web.svg)](https://github.com/nioc/xmpp-web/releases/latest)
[![Build Status](https://travis-ci.org/nioc/xmpp-web.svg?branch=master)](https://travis-ci.org/nioc/xmpp-web)

Lightweight web chat client for XMPP server.

## Key features

- Connect to an XMPP server with WebSocket or [BOSH](https://xmpp.org/about/technology-overview.html#bosh),

- Chat and groupchat (MUC),

- Retrieve contacts (roster) and bookmarked rooms,

- Lightweight (350 KB gzipped)

## Credits

- **[Nioc](https://github.com/nioc/)** - _Initial work_

See also the list of [contributors](https://github.com/nioc/xmpp-bot/contributors) to this project.

This project is powered by the following components:

- [StanzaJS](https://github.com/legastero/stanza) (MIT)

- [VueJS](https://vuejs.org/) (MIT)

- [Vuex](https://vuex.vuejs.org/) (MIT)

- [Vue Router](https://router.vuejs.org/) (MIT)

- [Vue-moment](https://github.com/brockpetrie/vue-moment) (MIT)

- [Bulma](https://bulma.io/) (MIT)

- [Buefy](https://buefy.github.io) (MIT)

- [Fork Awesome](https://forkaweso.me) (SIL OFL 1.1)

## License

This project is licensed under the GNU Affero General Public License v3.0 - see the [LICENSE](LICENSE.md) file for details
5 changes: 5 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}
53 changes: 53 additions & 0 deletions docs/apache.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<VirtualHost *:443>
# virtual host identification
ServerName chat.domain-web.ltd
ServerAlias chat.domain-web.ltd
ServerAdmin [email protected]

Protocols h2 http/1.1

DocumentRoot /var/www/xmpp-web

# ssl
SSLEngine on
Header always set Strict-Transport-Security "max-age=15768000"
SSLStrictSNIVHostCheck on

# websocket proxy
<IfModule mod_proxy_wstunnel.c>
<Location "/xmpp-websocket">
#ProxyPreserveHost On
ProxyPass "ws://domain-xmpp.ltd:5280/xmpp-websocket"
</Location>
</IfModule>

# bosh proxy
<IfModule mod_proxy.c>
<Location "/http-bind">
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Headers "*"
ProxyPass "http://domain-xmpp.ltd:5280/http-bind"
ProxyPassReverse "http://domain-xmpp.ltd:5280/http-bind"
</Location>
</IfModule>

# front files
<Directory "/var/www/xmpp-web/">
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride None
Require all granted
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
</Directory>

# logs
ErrorLog ${APACHE_LOG_DIR}/chat_error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/chat_access.log vhost_combined
</VirtualHost>
Loading

0 comments on commit dca5d75

Please sign in to comment.