All Projects → magne4000 → Quassel Webserver

magne4000 / Quassel Webserver

Licence: mit
A web server/client for Quassel

Labels

Projects that are alternatives of or similar to Quassel Webserver

Laravel Pug
Pug view adapter for Laravel and Lumen
Stars: ✭ 130 (-32.64%)
Mutual labels:  pug
Relaxed
Create PDF documents using web technologies
Stars: ✭ 11,656 (+5939.38%)
Mutual labels:  pug
G0v.tw
g0v.tw site
Stars: ✭ 170 (-11.92%)
Mutual labels:  pug
Webpack Pug Scss Boilerplate
📂 Webpack 4 based boilerplate for building apps
Stars: ✭ 135 (-30.05%)
Mutual labels:  pug
1.1.1.1
Cloudflare DNS resolver website.
Stars: ✭ 145 (-24.87%)
Mutual labels:  pug
Actions Workflow Samples
Help developers to easily get started with GitHub Action workflows to deploy to Azure
Stars: ✭ 158 (-18.13%)
Mutual labels:  pug
Phonegap Docs
PhoneGap Documentation
Stars: ✭ 124 (-35.75%)
Mutual labels:  pug
Hexo Theme Butterfly
🦋 A Hexo Theme: Butterfly
Stars: ✭ 3,146 (+1530.05%)
Mutual labels:  pug
Yaml Multiline
Find the right syntax for your YAML multiline strings
Stars: ✭ 154 (-20.21%)
Mutual labels:  pug
Compile Hero
🔰Visual Studio Code Extension For Compiling Language
Stars: ✭ 169 (-12.44%)
Mutual labels:  pug
Fan
hexo-theme
Stars: ✭ 137 (-29.02%)
Mutual labels:  pug
Paper
🌈 一个类纸风的主题paper🎉(still updating...)
Stars: ✭ 142 (-26.42%)
Mutual labels:  pug
Terminal theme
A simple theme based on hexo 👻👻👻
Stars: ✭ 160 (-17.1%)
Mutual labels:  pug
Gulp Starter Kit
A simple Gulp 4 Starter Kit for modern web development.
Stars: ✭ 134 (-30.57%)
Mutual labels:  pug
Feathericon
simply generic vector icon collection - including sketch file, svg files, and font files.
Stars: ✭ 178 (-7.77%)
Mutual labels:  pug
Vscode Deploy Reloaded
Recoded version of Visual Studio Code extension 'vs-deploy', which provides commands to deploy files to one or more destinations.
Stars: ✭ 129 (-33.16%)
Mutual labels:  pug
Resume
Resume of Kay Gosho. Built with Webpack + Pug + PostCSS
Stars: ✭ 158 (-18.13%)
Mutual labels:  pug
Hexo Theme Laughing
A lightweight hexo theme
Stars: ✭ 185 (-4.15%)
Mutual labels:  pug
Aero
🚄 Fastest node.js framework. Go version is actively maintained: @aerogo
Stars: ✭ 181 (-6.22%)
Mutual labels:  pug
Pug As Jsx Loader
Stars: ✭ 168 (-12.95%)
Mutual labels:  pug

quassel-webserver

A web client for Quassel (requires a running quasselcore)

❗️ Your node version should be at least v6.x (v6 through v10 are supported). To install node last version, you can install nvm.

Screenshots

Default

default theme

Solarized

solarized theme

Installation

With git:

git clone https://github.com/magne4000/quassel-webserver.git
cd quassel-webserver
npm install --production

With snap, in any of the supported Linux distributions: (Note that this is not yet stable)

snap install quassel-webserver --candidate

Development

Get the code and install the server with:

git clone https://github.com/magne4000/quassel-webserver.git
cd quassel-webserver
npm install

Update

Update the server with:

git pull && npm prune && npm update

and run the following command: node app.js

The server is now running.

Settings

It is recommended to copy settings.js file to a new settings-user.js file

cp settings.js settings-user.js

File settings-user.js can then be modified to specify default quasselcore host and port.
All available settings are described in settings.js file.

Certificate

You must use your own certificate for https mode. The key file is located at ssl/key.pem, and the certificate ssl/cert.pem.

You can generate a new self signed certificate with the following command:

openssl req -x509 -newkey rsa:2048 -keyout ssl/key.pem -out ssl/cert.pem -nodes

Usage

  Usage: app [options]

  Options:

    -h, --help            output usage information
    -V, --version         output the version number
    -c, --config <value>  Path to configuration file
    -s, --socket <path>   listen on local socket. If this option is set, --listen, --port and --mode are ignored
    -l, --listen <value>  listening address [0.0.0.0]
    -p, --port <value>    http(s) port to use [64080|64443]
    -m, --mode <value>    http mode (http|https) [https]

Init script

Startup scripts are available in scripts directory.

# SysVinit
cp scripts/startup /etc/init.d/quasselweb
# systemd
cp scripts/quassel-webserver.service /lib/systemd/system/quassel-webserver.service

For the sysvinit script, be sure to change BASEDIR, RUNASUSER and RUNASGROUP vars.
For the systemd script, you must customize ExecStart, User and Group to suit your needs.

In the browser

Just go to https://your.tld:64443 and enter your quasselcore information and credentials.

Reverse proxies

If you want to access quassel-webserver behind a reverse proxy, here are some tips.

Socket mode

You can launch quassel-webserver in local socket mode by adding -s <path/to/qws.run> to the command line. The specified path must point to a non-existent file, as it will be created by the application.

HTTP mode

You can launch quassel-webserver in http mode by adding -m http to the command line. This tells the webserver to run in http mode, and to listen on port 64080.
This way you can let your apache or nginx server handle the SSL layer.

Reverse proxy on https://your.tld/quassel

If you run behind /quassel location on your webserver, do not forget to edit settings-user.js file

...
prefixpath: '/quassel',
...

Also, be sure to launch quassel-webserver in http mode by adding -m http to the command line, optionally including -l localhost to block direct outside connections from bypassing the proxy server. You can also start quassel-webserver in socket mode by instead specifying -s <path/to/qws.run>.

nginx

upstream quassel {
    server http://127.0.0.1:64080
    # or for socket, uncomment following line, and comment previous line
    # server unix:/path/to/qws.run;
}

# rewrite ^[/]quassel$ /quassel/ permanent;
location /quassel {
    proxy_pass http://quassel/quassel;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_http_version 1.1;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $host;
    proxy_redirect off;
}

Apache

You will need mod_proxy_wstunnel and mod_rewrite.

To proxy to a server over TCP:

<VirtualHost ...>
...
RewriteEngine on
RewriteCond %{HTTP:Connection} Upgrade [NC]
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteRule /quassel/(.*) ws://127.0.0.1:64080/quassel/$1 [P,L]
ProxyPass /quassel http://127.0.0.1:64080/quassel
...
</VirtualHost>

or to proxy to a unix domain socket:

<VirtualHost ...>
  RewriteEngine On
  <Location /quassel>
    RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
    RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
    RewriteRule .* unix:///var/run/quasselweb.socket|ws://localhost/quassel/$1 [P,L,NE]

    ProxyPass unix:///var/run/quasselweb.socket|http://localhost/quassel
  </Location>
</VirtualHost>

(Note that you need the [NE] flag to prevent the "|" from being escaped)

Troubleshooting

Slow buffer display after some time

This is a known issue but there is a workaround:

  • go to the General Configuration and check Trim buffer when switching to another buffer. This is also configurable in settings-user.js file (see settings.js)

In socket mode : Error: listen EADDRINUSE

It means that quassel-webserver has been killed prematurely. You just have to manually delete <path/to/qws.run> file.

Support

#quassel-webserver on Freenode

License

Copyright (c) 2019 Joël Charles
Licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].