forked from nextcloud/nextcloud.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-collaboraonline.php
218 lines (198 loc) · 10.8 KB
/
page-collaboraonline.php
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<!-- <?php get_template_part('templates/parts/title'); ?> -->
<div class="page-header">
<h1>Collabora Online in Nextcloud</h1>
<h3>Bringing Self Hosted Online Office to everybody</h3>
</div>
<p>We're very excited to provide a solution for Online Office for the entire Nextcloud community through our <a target="_blank" href="https://nextcloud.com/?p=589">partnership with Collabora</a>. Together we are making available the latest and greatest of Online Office in an <strong>easy to use <a href="https://hub.docker.com/r/collabora/code">docker image</a> for home users</strong>.</p>
<p>Our enterprise customers can take advantage of a <a href="/enterprise">single-vendor support contract for Nextcloud and Collabora Online</a>.</p>
<div class="row featurerow topfeature">
<div class="col-md-7">
<h2>Collabora Online</h2>
<p>Collabora Online is a powerful LibreOffice-based online office suite that supports all major document, spreadsheet and presentation file formats.</p>
<p>Features:
<ul>
<li>Basic editing</li>
<li>Document Support:
<ul>
<li>DOC, DOCX, PPT, PPTX, XLS, XLSX + ODF</li>
<li>Import/View Visio, Publisher, + 100 more</li>
</ul>
</li>
<li>High fidelity, WYSIWYG rendering</li>
<li>Shared editing
<ul>
<li>One user edits, others can follow. You can change who edits.</li>
</ul>
</li>
</ul>
More features and capabilities are in development.</p>
</div>
<div class="col-md-5">
<div class="yt-img-overlay">
<a class="youtube" href="https://www.youtube.com/watch?v=sZpYXUD1ZVM" title="Collabora Online in Nextcloud">
<img class="img-responsive featureimg" src="https://img.youtube.com/vi/sZpYXUD1ZVM/hqdefault.jpg" title="Collabora Online in Nextcloud" />
<div class="yt-play-btn">
<i></i>
</div>
</a>
</div>
</div>
</div>
<div class="row featurerow topfeature">
<div class="col-md-4">
<div class="">
<img class="img-responsive featureimg" src="<?php bloginfo('template_directory'); ?>/assets/img/features/collabora-app.png" />
</div>
</div>
<div class="col-md-4">
<div class="">
<img class="img-responsive featureimg" src="<?php bloginfo('template_directory'); ?>/assets/img/features/collabora-presentation.png" />
</div>
</div>
<div class="col-md-4">
<div class="">
<img class="img-responsive featureimg" src="<?php bloginfo('template_directory'); ?>/assets/img/features/collabora-spreadsheet.png" />
</div>
</div>
</div>
<div class="row featurerow topfeature">
<div class="col-md-7">
<h2>Under your control</h2>
<p>Most people use online services for storing their data, communication and editing documents, often giving up control over their files in exchange for the convenience of online collaboration. With Nextcloud and Collabora Online, this is no longer a trade-off.<p>
<p>Collabora Online is:
<ul>
<li>Open Source</li>
<li>Self hosted</li>
<li>Secure</li>
</ul>
</p>
</div>
<div class="col-md-5">
<div class="">
<img class="img-responsive featureimg" src="<?php bloginfo('template_directory'); ?>/assets/img/features/collabora-document.png" />
</div>
</div>
</div>
<div class="featurerow">
<h2 class="featuretitle">Collabora Online integration tutorial video</h2>
<div class="row">
<div class="col-md-8">
<div class="yt-img-overlay">
<a class="youtube" href="https://www.youtube.com/watch?v=MDc1bNxn3js" title="Collabora Online in Nextcloud">
<img class="img-responsive featureimg" src="https://img.youtube.com/vi/MDc1bNxn3js/hqdefault.jpg" title="Collabora Online in Nextcloud tutorial" />
<div class="yt-play-btn">
<i></i>
</div>
</a>
</div>
</div>
</div>
</div>
<h2>Getting started in 3 steps</h2>
<p>We'll describe how to get Collabora Online running on your server and how to integrate it into your Nextcloud using the docker image Nextcloud and Collabora built.</p>
<h3>Requirements</h3>
<p>To install it the following dependencies are required:
<ol>
<li>A host that can run a Docker container</li>
<li>A subdomain or a second domain that the Collabora Online server can run on</li>
<li>An Apache server with some enabled modules (<a href="https://icewind.nl/entry/collabora-online">NGNIX instructions in a blog here</a>)</li>
<li>A valid SSL certificate for the domain that CollaboraOnline should run on</li>
<li>A valid SSL certificate for your Nextcloud</li>
</ol>
<strong>Note:</strong> This guide does <em>NOT</em> cover self-signed certificates. If you use a self-signed certificate then you're mostly on your own ;-)</p>
<h3>1. Install the Collabora Online server</h3>
<p>The following steps will download the Collabora Online docker, make sure to replace "cloud.nextcloud.com" with the host that your own Nextcloud runs on. (make sure to escape all dots with a <code>\</code> character)</p>
<p><pre><code>docker pull collabora/code
docker run -t -d -p 127.0.0.1:9980:9980 -e "domain=cloud\.nextcloud\.com" --restart always --cap-add MKNOD collabora/code
</code></pre></p>
<p>That will be enough. Once you have done that the server will listen on "localhost:9980". Now we just need to configure the locally installed Apache reverse proxy.</p>
<h3></a>2. Install the Apache reverse proxy</h3>
<p>On a recent Ubuntu or Debian this should be possible using:
<ol>
<li><code>apt-get install apache2</code></li>
<li><code>a2enmod proxy</code></li>
<li><code>a2enmod proxy_wstunnel</code></li>
<li><code>a2enmod proxy_http</code></li>
<li><code>a2enmod ssl</code></li>
</ol></p>
<p>Afterwards, configure one VirtualHost properly to proxy the traffic. For security reason we recommend to use a subdomain such as office.nextcloud.com instead of running on the same domain. An example config can be found below:</p>
<p><pre><code><VirtualHost *:443>
ServerName office.nextcloud.com:443
# SSL configuration, you may want to take the easy route instead and use Lets Encrypt!
SSLEngine on
SSLCertificateFile /path/to/signed_certificate
SSLCertificateChainFile /path/to/intermediate_certificate
SSLCertificateKeyFile /path/to/private/key
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS
SSLHonorCipherOrder on
# Encoded slashes need to be allowed
AllowEncodedSlashes On
# Container uses a unique non-signed certificate
SSLProxyEngine On
SSLProxyVerify None
SSLProxyCheckPeerCN Off
SSLProxyCheckPeerName Off
# keep the host
ProxyPreserveHost On
# static html, js, images, etc. served from loolwsd
# loleaflet is the client part of LibreOffice Online
ProxyPass /loleaflet https://127.0.0.1:9980/loleaflet retry=0
ProxyPassReverse /loleaflet https://127.0.0.1:9980/loleaflet
# WOPI discovery URL
ProxyPass /hosting/discovery https://127.0.0.1:9980/hosting/discovery retry=0
ProxyPassReverse /hosting/discovery https://127.0.0.1:9980/hosting/discovery
# Main websocket
ProxyPass /lool/ws wss://127.0.0.1:9980/lool/ws
# Admin Console websocket
ProxyPass /lool/adminws wss://127.0.0.1:9980/lool/adminws
# Download as, Fullscreen presentation and Image upload operations
ProxyPass /lool https://127.0.0.1:9980/lool
ProxyPassReverse /lool https://127.0.0.1:9980/lool
</VirtualHost>
</code></pre></p>
<p>After configuring these do restart your apache using <code>/etc/init.d/apache2 restart</code>.</p>
<h3>3. Configure the app in Nextcloud</h3>
<p><ol>
<li>Go to the Apps section and choose "Productivity"</li>
<li>Install the "Collabora Online app"</li>
<li>Admin -> Collabora Online -> Specify the server you have setup before (e.g. "<a href="https://office.nextcloud.com/">https://office.nextcloud.com</a>")</li>
</ol></p>
<h1>Congratulations, your Nextcloud has Collabora Online Office integrated!</h1>
<h2>Updating</h2>
<p>Occasionally, new versions of this docker image are released with security and feature updates. We will of course let you know when that happens! This is how you upgrade to a new version:
<ul>
<li>grab new docker image:<br/>
<code>docker pull collabora/code</code></li>
<li>List docker images:<br/>
<code>docker ps</code><br/>
from the output you can glean the Container ID of your Collabora Online docker image.</li>
<li>stop and remove the Collabora Online docker image:<br/>
<code>docker stop CONTAINER_ID</code><br/>
docker rm CONTAINER_ID</code></li>
<li>start the new image:<br/>
<code>docker run -t -d -p 127.0.0.1:9980:9980 -e "domain=cloud\.nextcloud\.com" --restart always --cap-add MKNOD collabora/code</code></li>
</ul>
Enjoy!</p>
<h2>Troubleshooting</h2>
<p>Some common issues:
<ul>
<li><strong>Issue:</strong> Can't configure the URL in the Admin panel.<br/>
This is most likely caused by the Documents app being enabled. Disable it and you can set the URL.</li>
<li><strong>Issue:</strong> I get connection errors when trying to open documents<br/>
Be sure to check the error log from docker (<code>docker logs id-of-your-instance</code>). If the logs note something like:<br/>
<code>No acceptable WOPI hosts found matching the target host [YOUR NEXTCLOUD DOMAIN] in config.</code><br/>
you might have started the docker container with the wrong URL. Be sure to start it with the URL of your Nextcloud server, not the server where Collabora Online runs on.</li>
<li><strong>Issue:</strong> <code>Connection is not allowed</code> errors.<br/>
It is possible your firewall is blocking connections. Try to start docker after you started the firewall, it makes changes to your iptables to enable Collabora Online to function.</li>
</ul>
Find more questions and answers in the <a href="https://help.nextcloud.com/t/issue-installing-collabora-following-official-guide/1746/58">discussion thread on the forums</a>.</p>
<h2>Enjoy and let us know what you think <a href="https://help.nextcloud.com">on the forums</a>!</h2>
<link type="text/css" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/redmond/jquery-ui.css" rel="stylesheet" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/assets/js/vendor/jquery.youtubepopup.min.js"></script>
<script type="text/javascript">
$(function () {
$("a.youtube").YouTubePopup({ hideTitleBar: true });
});
</script>