blob: b028f0a2992dd8fe6d20fddc6b2c5aeb83730a28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
|
# Communication Service Website Source
[![GitHub license](https://img.shields.io/github/license/mattrude/xmpp-site-lite.svg)](https://github.com/mattrude/xmpp-site-lite/blob/master/LICENSE) [![Open Issues](https://img.shields.io/github/issues-raw/mattrude/xmpp-site-lite.svg)](https://github.com/mattrude/xmpp-site-lite/issues) [![Maintenance](https://img.shields.io/maintenance/yes/2018.svg)](http://github.com/mattrude/xmpp-site-lite)
This is the website for a XMPP service.
### Site Components
* [Bootstrap 4.0](https://getbootstrap.com/) (via CDN)
## Installing Site
Installing this site is no diffrent then installing anyother [Jekyll](https://jekyllrb.com/) site. You will need to download the source and compile it. The compiled output will be the full HTML output.
### 1. Clone the site
git clone https://github.com/mattrude/xmpp-site-lite.git
cd xmpp-site-lite
### 2. Update Dependencies
bundler update
### 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
mattrude.com XMPP Service Website for im.mattrude.com
Copyright (C) 2012-2016 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/>.
|