-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit dca5d75
Showing
25 changed files
with
13,787 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
presets: [ | ||
'@vue/cli-plugin-babel/preset' | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.