Newer
Older
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
server {
listen 443 ssl;
server_name {{ collabora_domain | mandatory }};
ssl_certificate /etc/letsencrypt/live/{{ collabora_domain }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ collabora_domain }}/privkey.pem;
access_log {{ www_log | mandatory }}/{{ collabora_domain }}/access.log;
error_log {{ www_log | mandatory }}/{{ collabora_domain }}/error.log;
# static files
location ^~ /loleaflet {
proxy_pass https://localhost:{{ collabora_port | mandatory}};
proxy_set_header Host $http_host;
}
# WOPI discovery URL
location ^~ /hosting/discovery {
proxy_pass https://localhost:{{ collabora_port }};
proxy_set_header Host $http_host;
}
# main websocket
location ~ ^/lool/(.*)/ws$ {
proxy_pass https://localhost:{{ collabora_port }};
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
proxy_read_timeout 36000s;
}
# download, presentation and image upload
location ~ ^/lool {
proxy_pass https://localhost:{{ collabora_port }};
proxy_set_header Host $http_host;
}
# Admin Console websocket
location ^~ /lool/adminws {
proxy_pass https://localhost:{{ collabora_port }};
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
proxy_read_timeout 36000s;
}
}