Giter Site home page Giter Site logo

mattrude / xmpp-site-lite Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 1.64 MB

A (mostly) single page XMPP server Jekyll site.

Home Page: https://im.soderparr.com

License: GNU General Public License v3.0

HTML 72.31% Ruby 0.22% CSS 13.13% JavaScript 0.57% Shell 13.77%
jekyll xmpp-site ejabberd

xmpp-site-lite's Introduction

Communication Service Website Source

Build Status GitHub license Open Issues Maintenance

This is the website for the XMPP service at soderparr.com.

Site Components

Installing Site

Installing this site is no diffrent then installing anyother Jekyll site. You will need to download the source and compile it. The compiled output will be the full HTML output.

1. Clone the site

apt update; apt -y install ruby bundler
git clone https://github.com/mattrude/xmpp-site-lite.git
cd xmpp-site-lite

2. Update Dependencies

bundler install

3. Build the site

bundle exec jekyll build

4. Setting up the Webserver

Nginx Configuration

server {
    listen 80;
    listen [::]:80;
    server_name im.example.com;
    server_name conference.example.com;
    server_name proxy.example.com;
    server_name pubsub.example.com;
    server_name upload.example.com;
    error_log off;

    location '/.well-known/acme-challenge' {
        default_type "text/plain";
        root /var/www/im.example.com;
    }

    location / {
        return              301 https://$server_name$request_uri;
    }
}

server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    server_name im.example.com;
    server_name conference.example.com;
    server_name upload.example.com;
    root /var/www/im.example.com;
    index index.html;
    error_log off;

    ssl_certificate         /etc/letsencrypt/live/im.example.com/fullchain.pem;
    ssl_certificate_key     /etc/letsencrypt/live/im.example.com/privkey.pem;
    ssl_stapling on;

    error_page 404 /404.html;

    location /upload {
        proxy_pass http://upload.example.com:5280/upload;
        proxy_set_header Host upload.example.com;
        proxy_buffering off;
        tcp_nodelay on;
    }

    location /pastebin {
        proxy_pass http://conference.example.com:5280;
        proxy_set_header Host conference.example.com;
        proxy_buffering off;
        tcp_nodelay on;
    }

    location /admin {
        proxy_pass http://im.example.com:5280/admin/;
        proxy_set_header Host example.com;
        proxy_buffering off;
        tcp_nodelay on;
    }

    location /log {
        proxy_pass http://conference.example.com:5280/muc_log/;
        proxy_set_header Host conference.example.com;
        proxy_buffering off;
        tcp_nodelay on;
    }

    location /http-bind {
        proxy_pass http://im.example.com:5280/http-bind;
        proxy_set_header Host example.com;
        proxy_buffering off;
        tcp_nodelay on;
    }

    location /status {
        proxy_pass http://im.example.com:5280/status;
        proxy_set_header Host example.com;
        proxy_buffering off;
        tcp_nodelay on;
    }

    location /register {
        proxy_pass http://localhost:5280/register_web;
        proxy_set_header Host im.example.com;
        proxy_buffering off;
        tcp_nodelay on;
    }

    location /register_web {
        proxy_pass http://localhost:5280/register_web;
        proxy_set_header Host im.example.com;
        proxy_buffering off;
        tcp_nodelay on;
    }

    location ~* /files {
        return 404;
    }

    location ~* \.(?:css|ico|js|jpeg|jpg)$ {
        expires 1y;
        add_header Cache-Control "public";
    }

    location / {
    }
}

License

              GNU GENERAL PUBLIC LICENSE
                Version 3, 29 June 2007

soderparr.com XMPP Service Website for im.soderparr.com
Copyright (C) 2012-2019 Matt Rude <[email protected]>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

xmpp-site-lite's People

Contributors

mattrude avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

xmpp-site-lite's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.