Pārlūkot izejas kodu

Adds the example config files and updates the link in INSTAL.md

master
Boris Grozev 11 gadus atpakaļ
vecāks
revīzija
50a08d175f

+ 1
- 1
INSTALL.md Parādīt failu

@@ -4,7 +4,7 @@ This describes configuring a server `jitmeet.example.com`.  You will need to
4 4
 change references to that to match your host, and generate some passwords for
5 5
 `YOURSECRET1` and `YOURSECRET2`.
6 6
 
7
-There are also some complete [example config files](https://www.dropbox.com/sh/jgp4s8kp6xuyubr/5FACgJmqLD) available, mentioned in each section.
7
+There are also some complete [example config files](https://github.com/jitsi/jitsi-meet/tree/master/doc/example-config-files/) available, mentioned in each section.
8 8
 
9 9
 ## Install prosody and otalk modules
10 10
 ```sh

+ 2
- 2
README.md Parādīt failu

@@ -4,7 +4,7 @@ Jitsi Meet is an OpenSource (MIT) WebRTC JavaScript application that uses [Jitsi
4 4
 
5 5
 You can also try it out yourself at https://meet.jit.si .
6 6
 
7
-Jitsi Meet allows for very efficient collaboration. It allows users to stream their desktop or only some windows. It also shared document editing with Etherpad and remote presentations with Prezi. 
7
+Jitsi Meet allows for very efficient collaboration. It allows users to stream their desktop or only some windows. It also supports shared document editing with Etherpad and remote presentations with Prezi. 
8 8
 
9 9
 ## Install
10 10
 
@@ -12,7 +12,7 @@ Installing Jitsi Meet is quite a simple experience even though it requires insta
12 12
 
13 13
 You can find information on how to deploy Jitsi Meet in the [installation insstructions](https://jitsi.org/meet/deploy)
14 14
 
15
-You may also find it helpful to have a look at our sample [config files](https://www.dropbox.com/sh/jgp4s8kp6xuyubr/5FACgJmqLD) 
15
+You may also find it helpful to have a look at our sample [config files](https://github.com/jitsi/jitsi-meet/tree/master/doc/example-config-files/) 
16 16
 
17 17
 ## Acknowledgements
18 18
 

+ 9
- 0
doc/example-config-files/config.js.example Parādīt failu

@@ -0,0 +1,9 @@
1
+var config = {
2
+    hosts: {
3
+        domain: 'jitmeet.example.com',
4
+        muc: 'conference.jitmeet.example.com', // FIXME: use XEP-0030
5
+        bridge: 'jitsi-videobridge.jitmeet.example.com' // FIXME: use XEP-0030
6
+    },
7
+    useNicks: false,
8
+    bosh: '//jitmeet.example.com/http-bind' // FIXME: use xep-0156 for that
9
+};

+ 28
- 0
doc/example-config-files/jitmeet.example.com.example Parādīt failu

@@ -0,0 +1,28 @@
1
+server {
2
+    listen 80;
3
+
4
+    server_name jitmeet.example.com;
5
+    # set the root
6
+    root /srv/jitmeet.example.com;
7
+    index index.html;
8
+
9
+    location ~ ^/([a-zA-Z0-9]+)$ {
10
+        rewrite ^/(.*)$ / break;
11
+        }
12
+    # BOSH
13
+    location /http-bind {
14
+        proxy_pass      http://localhost:5280/http-bind;
15
+        proxy_set_header X-Forwarded-For $remote_addr;
16
+        proxy_set_header Host $http_host;
17
+    }
18
+
19
+    # xmpp websockets
20
+    location /xmpp-websocket {
21
+        proxy_pass http://localhost:5280;
22
+        proxy_http_version 1.1;
23
+        proxy_set_header Upgrade $http_upgrade;
24
+        proxy_set_header Connection "upgrade";
25
+        proxy_set_header Host $host;
26
+        tcp_nodelay on;
27
+    }
28
+}

+ 54
- 0
doc/example-config-files/nginx.conf.example Parādīt failu

@@ -0,0 +1,54 @@
1
+user www-data;
2
+worker_processes  1;
3
+
4
+error_log  /var/log/nginx/error.log;
5
+pid        /var/run/nginx.pid;
6
+
7
+events {
8
+    worker_connections  1024;
9
+    # multi_accept on;
10
+}
11
+
12
+http {
13
+    include       /etc/nginx/mime.types;
14
+
15
+    access_log	/var/log/nginx/access.log;
16
+
17
+    sendfile        on;
18
+    #tcp_nopush     on;
19
+
20
+    #keepalive_timeout  0;
21
+    keepalive_timeout  65;
22
+    tcp_nodelay        on;
23
+
24
+    tcp_nopush on;
25
+    types_hash_max_size 2048;
26
+    server_names_hash_bucket_size 64;
27
+
28
+    gzip  on;
29
+    gzip_disable "MSIE [1-6]\.(?!.*SV1)";
30
+
31
+    include /etc/nginx/conf.d/*.conf;
32
+    include /etc/nginx/sites-enabled/*;
33
+}
34
+
35
+# mail {
36
+#     # See sample authentication script at:
37
+#     # http://wiki.nginx.org/NginxImapAuthenticateWithApachePhpScript
38
+# 
39
+#     # auth_http localhost/auth.php;
40
+#     # pop3_capabilities "TOP" "USER";
41
+#     # imap_capabilities "IMAP4rev1" "UIDPLUS";
42
+# 
43
+#     server {
44
+#         listen     localhost:110;
45
+#         protocol   pop3;
46
+#         proxy      on;
47
+#     }
48
+# 
49
+#     server {
50
+#         listen     localhost:143;
51
+#         protocol   imap;
52
+#         proxy      on;
53
+#     }
54
+# }

+ 205
- 0
doc/example-config-files/prosody.cfg.lua.example Parādīt failu

@@ -0,0 +1,205 @@
1
+-- Prosody XMPP Server Configuration
2
+--
3
+-- Information on configuring Prosody can be found on our
4
+-- website at http://prosody.im/doc/configure
5
+--
6
+-- Tip: You can check that the syntax of this file is correct
7
+-- when you have finished by running: prosodyctl check config
8
+-- If there are any errors, it will let you know what and where
9
+-- they are, otherwise it will keep quiet.
10
+--
11
+-- Good luck, and happy Jabbering!
12
+
13
+
14
+---------- Server-wide settings ----------
15
+-- Settings in this section apply to the whole server and are the default settings
16
+-- for any virtual hosts
17
+
18
+-- This is a (by default, empty) list of accounts that are admins
19
+-- for the server. Note that you must create the accounts separately
20
+-- (see http://prosody.im/doc/creating_accounts for info)
21
+-- Example: admins = { "user1@example.com", "user2@example.net" }
22
+admins = { }
23
+daemonize = true
24
+cross_domain_bosh = true;
25
+component_ports = { 5347 }
26
+--component_interface = "192.168.0.10"
27
+
28
+-- Enable use of libevent for better performance under high load
29
+-- For more information see: http://prosody.im/doc/libevent
30
+--use_libevent = true
31
+
32
+-- This is the list of modules Prosody will load on startup.
33
+-- It looks for mod_modulename.lua in the plugins folder, so make sure that exists too.
34
+-- Documentation on modules can be found at: http://prosody.im/doc/modules
35
+modules_enabled = {
36
+
37
+	-- Generally required
38
+		"roster"; -- Allow users to have a roster. Recommended ;)
39
+		"saslauth"; -- Authentication for clients and servers. Recommended if you want to log in.
40
+		"tls"; -- Add support for secure TLS on c2s/s2s connections
41
+		"dialback"; -- s2s dialback support
42
+		"disco"; -- Service discovery
43
+		"posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
44
+
45
+	-- Not essential, but recommended
46
+		"private"; -- Private XML storage (for room bookmarks, etc.)
47
+		"vcard"; -- Allow users to set vCards
48
+	
49
+	-- These are commented by default as they have a performance impact
50
+		--"privacy"; -- Support privacy lists
51
+		"compression"; -- Stream compression (requires the lua-zlib package installed)
52
+
53
+	-- Nice to have
54
+		"version"; -- Replies to server version requests
55
+		"uptime"; -- Report how long server has been running
56
+		"time"; -- Let others know the time here on this server
57
+		"ping"; -- Replies to XMPP pings with pongs
58
+		"pep"; -- Enables users to publish their mood, activity, playing music and more
59
+		"register"; -- Allow users to register on this server using a client and change passwords
60
+
61
+	-- Admin interfaces
62
+		"admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands
63
+		--"admin_telnet"; -- Opens telnet console interface on localhost port 5582
64
+
65
+	-- HTTP modules
66
+		"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
67
+		--"http_files"; -- Serve static files from a directory over HTTP
68
+
69
+	-- Other specific functionality
70
+		--"groups"; -- Shared roster support
71
+		--"announce"; -- Send announcement to all online users
72
+		--"welcome"; -- Welcome users who register accounts
73
+		--"watchregistrations"; -- Alert admins of registrations
74
+		--"motd"; -- Send a message to users when they log in
75
+		--"legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
76
+	-- jitmeet
77
+		"smacks";
78
+		"carbons";
79
+		"mam";
80
+		"lastactivity";
81
+		"offline";
82
+		"pubsub";
83
+		"adhoc";
84
+		"websocket";
85
+		"http_altconnect";
86
+}
87
+
88
+-- These modules are auto-loaded, but should you want
89
+-- to disable them then uncomment them here:
90
+modules_disabled = {
91
+	-- "offline"; -- Store offline messages
92
+	-- "c2s"; -- Handle client connections
93
+	-- "s2s"; -- Handle server-to-server connections
94
+}
95
+
96
+-- Disable account creation by default, for security
97
+-- For more information see http://prosody.im/doc/creating_accounts
98
+allow_registration = false
99
+
100
+-- These are the SSL/TLS-related settings. If you don't want
101
+-- to use SSL/TLS, you may comment or remove this
102
+ssl = {
103
+    key = "/etc/prosody/certs/localhost.key";
104
+    certificate = "/etc/prosody/certs/localhost.crt";
105
+}
106
+
107
+-- Force clients to use encrypted connections? This option will
108
+-- prevent clients from authenticating unless they are using encryption.
109
+
110
+-- c2s_require_encryption = true
111
+
112
+-- Force certificate authentication for server-to-server connections?
113
+-- This provides ideal security, but requires servers you communicate
114
+-- with to support encryption AND present valid, trusted certificates.
115
+-- NOTE: Your version of LuaSec must support certificate verification!
116
+-- For more information see http://prosody.im/doc/s2s#security
117
+
118
+-- s2s_secure_auth = false
119
+
120
+-- Many servers don't support encryption or have invalid or self-signed
121
+-- certificates. You can list domains here that will not be required to
122
+-- authenticate using certificates. They will be authenticated using DNS.
123
+
124
+--s2s_insecure_domains = { "gmail.com" }
125
+
126
+-- Even if you leave s2s_secure_auth disabled, you can still require valid
127
+-- certificates for some domains by specifying a list here.
128
+
129
+--s2s_secure_domains = { "jabber.org" }
130
+
131
+-- Required for init scripts and prosodyctl
132
+pidfile = "/var/run/prosody/prosody.pid"
133
+
134
+-- Select the authentication backend to use. The 'internal' providers
135
+-- use Prosody's configured data storage to store the authentication data.
136
+-- To allow Prosody to offer secure authentication mechanisms to clients, the
137
+-- default provider stores passwords in plaintext. If you do not trust your
138
+-- server please see http://prosody.im/doc/modules/mod_auth_internal_hashed
139
+-- for information about using the hashed backend.
140
+
141
+-- authentication = "internal_plain"
142
+authentication = "internal_hashed"
143
+
144
+-- Select the storage backend to use. By default Prosody uses flat files
145
+-- in its configured data directory, but it also supports more backends
146
+-- through modules. An "sql" backend is included by default, but requires
147
+-- additional dependencies. See http://prosody.im/doc/storage for more info.
148
+
149
+--storage = "sql" -- Default is "internal"
150
+
151
+-- For the "sql" backend, you can uncomment *one* of the below to configure:
152
+--sql = { driver = "SQLite3", database = "prosody.sqlite" } -- Default. 'database' is the filename.
153
+--sql = { driver = "MySQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" }
154
+--sql = { driver = "PostgreSQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" }
155
+
156
+-- Logging configuration
157
+-- For advanced logging see http://prosody.im/doc/logging
158
+log = {
159
+	info = "/var/log/prosody/prosody.log"; -- Change 'info' to 'debug' for verbose logging
160
+	error = "/var/log/prosody/prosody.err";
161
+	"*syslog";
162
+}
163
+
164
+----------- Virtual hosts -----------
165
+-- You need to add a VirtualHost entry for each domain you wish Prosody to serve.
166
+-- Settings under each VirtualHost entry apply *only* to that host.
167
+
168
+--VirtualHost "localhost"
169
+
170
+VirtualHost "jitmeet.example.com"
171
+	-- enabled = false -- Remove this line to enable this host
172
+	authentication = "anonymous"
173
+	-- Assign this host a certificate for TLS, otherwise it would use the one
174
+	-- set in the global section (if any).
175
+	-- Note that old-style SSL on port 5223 only supports one certificate, and will always
176
+	-- use the global one.
177
+	ssl = {
178
+		key = "/var/lib/prosody/jitmeet.example.com.key";
179
+		certificate = "/var/lib/prosody/jitmeet.example.com.crt";
180
+	}
181
+
182
+------ Components ------
183
+-- You can specify components to add hosts that provide special services,
184
+-- like multi-user conferences, and transports.
185
+-- For more information on components, see http://prosody.im/doc/components
186
+
187
+---Set up a MUC (multi-user chat) room server on conference.example.com:
188
+--Component "conference.example.com" "muc"
189
+
190
+-- Set up a SOCKS5 bytestream proxy for server-proxied file transfers:
191
+--Component "proxy.example.com" "proxy65"
192
+
193
+---Set up an external component (default component port is 5347)
194
+--
195
+-- External components allow adding various services, such as gateways/
196
+-- transports to other networks like ICQ, MSN and Yahoo. For more info
197
+-- see: http://prosody.im/doc/components#adding_an_external_component
198
+--
199
+--Component "gateway.example.com"
200
+--	component_secret = "password"
201
+
202
+Component "conference.jitmeet.example.com" "muc"
203
+
204
+Component "jitsi-videobridge.jitmeet.example.com"
205
+    component_secret = "IfGaish6"

Notiek ielāde…
Atcelt
Saglabāt