Projet

Général

Profil

Collabora » Historique » Version 1

sacha, 30/04/2024 22:44

1 1 sacha
# Collabora
2
3
collabora.aquilenet.fr (CNAME palamede.aquilenet.fr)
4
5
Édition de documents dans Nextcloud
6
7
## Installation
8
9
https://www.collaboraoffice.com/code/linux-packages/
10
11
~~~
12
cd /usr/share/keyrings
13
sudo wget https://collaboraoffice.com/downloads/gpg/collaboraonline-release-keyring.gpg
14
~~~
15
16
* /etc/apt/sources.list.d/collaboraonline.sources 
17
18
~~~
19
Types: deb
20
URIs: https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-deb
21
Suites: ./
22
Signed-By: /usr/share/keyrings/collaboraonline-release-keyring.gpg
23
~~~
24
25
~~~
26
apt update && apt install coolwsd code-brand
27
~~~
28
29
## Configuration Nginx
30
31
* /etc/nginx/sites-enabled/collabora.aquilenet.fr 
32
33
~~~
34
server {
35
 listen       443 ssl;
36
 server_name  collabora.aquilenet.fr;
37
38
 ssl_certificate /etc/letsencrypt/live/collabora.aquilenet.fr/fullchain.pem;
39
 ssl_certificate_key /etc/letsencrypt/live/collabora.aquilenet.fr/privkey.pem;
40
41
 # static files
42
 location ^~ /browser {
43
   proxy_pass http://127.0.0.1:9980;
44
   proxy_set_header Host $http_host;
45
 }
46
 # WOPI discovery URL
47
 location ^~ /hosting/discovery {
48
   proxy_pass http://127.0.0.1:9980;
49
   proxy_set_header Host $http_host;
50
 }
51
 # Capabilities
52
 location ^~ /hosting/capabilities {
53
   proxy_pass http://127.0.0.1:9980;
54
   proxy_set_header Host $http_host;
55
 }
56
 # main websocket
57
 location ~ ^/cool/(.*)/ws$ {
58
   proxy_pass http://127.0.0.1:9980;
59
   proxy_set_header Upgrade $http_upgrade;
60
   proxy_set_header Connection "Upgrade";
61
   proxy_set_header Host $http_host;
62
   proxy_read_timeout 36000s;
63
 }
64
 # download, presentation and image upload
65
 location ~ ^/(c|l)ool {
66
   proxy_pass http://127.0.0.1:9980;
67
   proxy_set_header Host $http_host;
68
 }
69
 # Admin Console websocket
70
 location ^~ /cool/adminws {
71
   proxy_pass http://127.0.0.1:9980;
72
   proxy_set_header Upgrade $http_upgrade;
73
   proxy_set_header Connection "Upgrade";
74
   proxy_set_header Host $http_host;
75
   proxy_read_timeout 36000s;
76
 }
77
}
78
~~~
79
## Conf Collabora
80
81
* ssl derrière proxy
82
83
~~~
84
coolconfig set ssl.enable false
85
coolconfig set ssl.termination true
86
coolconfig set-admin-password
87
systemctl restart coolwsd
88
~~~
89
* authorisation de plusieurs Nextclouds
90
91
~~~
92
                        <alias_groups desc="default mode is 'first' it allows only the first host when groups are not defined. set mode to 'groups' and define group to allow multiple host and its aliases" mode="groups">
93
~~~
94
~~~
95
            <!-- More "group"s possible here -->
96
                                <group><host allow="true">https://cloud.aquilenet.fr</host></group>
97
                                <group><host allow="true">https://cloud.pl4tform.org</host></group>
98
99
                        </alias_groups>
100
~~~
101
102
103
## Config Nextcloud
104
105
Ajouter le module "Office Online integration" et le configurer avec l'adresse "https://collabora.aquilenet.fr"
106
107
## Admin
108
mdp admin dans le coffre
109
110
https://collabora.aquilenet.fr/browser/dist/admin/admin.html