blob: a7248194654b6b863f433051cf2f4d48e470363f (
plain) (
blame)
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
|
client_max_body_size 128M;
# static files
location ^~ /browser {
include snippets/proxy-nobuff.conf;
include snippets/proxy-forward-headers.conf;
proxy_set_header Host $http_host;
{% if collabora_code_instances[collabora_code_instance].publish.zone.publisher == inventory_hostname %}
proxy_pass https://127.0.0.1:{{ collabora_code_instances[collabora_code_instance].port }};
{% else %}
proxy_pass https://{{ ansible_default_ipv4.address }}:{{ collabora_code_instances[collabora_code_instance].port }};
{% endif %}
proxy_ssl_trusted_certificate /etc/ssl/apps-publish-{{ collabora_code_instances[collabora_code_instance].publish.zone.name }}/apps-publish-{{ collabora_code_instances[collabora_code_instance].publish.zone.name }}-ca-crt.pem;
proxy_ssl_verify on;
proxy_ssl_name collabora-code-{{ collabora_code_instance }}.{{ inventory_hostname }};
proxy_ssl_protocols TLSv1.3;
}
# WOPI discovery URL
location ^~ /hosting/discovery {
include snippets/proxy-nobuff.conf;
include snippets/proxy-forward-headers.conf;
proxy_set_header Host $http_host;
{% if collabora_code_instances[collabora_code_instance].publish.zone.publisher == inventory_hostname %}
proxy_pass https://127.0.0.1:{{ collabora_code_instances[collabora_code_instance].port }};
{% else %}
proxy_pass https://{{ ansible_default_ipv4.address }}:{{ collabora_code_instances[collabora_code_instance].port }};
{% endif %}
proxy_ssl_trusted_certificate /etc/ssl/apps-publish-{{ collabora_code_instances[collabora_code_instance].publish.zone.name }}/apps-publish-{{ collabora_code_instances[collabora_code_instance].publish.zone.name }}-ca-crt.pem;
proxy_ssl_verify on;
proxy_ssl_name collabora-code-{{ collabora_code_instance }}.{{ inventory_hostname }};
proxy_ssl_protocols TLSv1.3;
}
# Capabilities
location ^~ /hosting/capabilities {
include snippets/proxy-nobuff.conf;
include snippets/proxy-forward-headers.conf;
proxy_set_header Host $http_host;
{% if collabora_code_instances[collabora_code_instance].publish.zone.publisher == inventory_hostname %}
proxy_pass https://127.0.0.1:{{ collabora_code_instances[collabora_code_instance].port }};
{% else %}
proxy_pass https://{{ ansible_default_ipv4.address }}:{{ collabora_code_instances[collabora_code_instance].port }};
{% endif %}
proxy_ssl_trusted_certificate /etc/ssl/apps-publish-{{ collabora_code_instances[collabora_code_instance].publish.zone.name }}/apps-publish-{{ collabora_code_instances[collabora_code_instance].publish.zone.name }}-ca-crt.pem;
proxy_ssl_verify on;
proxy_ssl_name collabora-code-{{ collabora_code_instance }}.{{ inventory_hostname }};
proxy_ssl_protocols TLSv1.3;
}
# main websocket
location ~ ^/cool/(.*)/ws$ {
include snippets/proxy-nobuff.conf;
include snippets/proxy-forward-headers.conf;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 36000s;
proxy_set_header Host $http_host;
{% if collabora_code_instances[collabora_code_instance].publish.zone.publisher == inventory_hostname %}
proxy_pass https://127.0.0.1:{{ collabora_code_instances[collabora_code_instance].port }};
{% else %}
proxy_pass https://{{ ansible_default_ipv4.address }}:{{ collabora_code_instances[collabora_code_instance].port }};
{% endif %}
proxy_ssl_trusted_certificate /etc/ssl/apps-publish-{{ collabora_code_instances[collabora_code_instance].publish.zone.name }}/apps-publish-{{ collabora_code_instances[collabora_code_instance].publish.zone.name }}-ca-crt.pem;
proxy_ssl_verify on;
proxy_ssl_name collabora-code-{{ collabora_code_instance }}.{{ inventory_hostname }};
proxy_ssl_protocols TLSv1.3;
}
# download, presentation and image upload
location ~ ^/(c|l)ool {
include snippets/proxy-nobuff.conf;
include snippets/proxy-forward-headers.conf;
proxy_set_header Host $http_host;
{% if collabora_code_instances[collabora_code_instance].publish.zone.publisher == inventory_hostname %}
proxy_pass https://127.0.0.1:{{ collabora_code_instances[collabora_code_instance].port }};
{% else %}
proxy_pass https://{{ ansible_default_ipv4.address }}:{{ collabora_code_instances[collabora_code_instance].port }};
{% endif %}
proxy_ssl_trusted_certificate /etc/ssl/apps-publish-{{ collabora_code_instances[collabora_code_instance].publish.zone.name }}/apps-publish-{{ collabora_code_instances[collabora_code_instance].publish.zone.name }}-ca-crt.pem;
proxy_ssl_verify on;
proxy_ssl_name collabora-code-{{ collabora_code_instance }}.{{ inventory_hostname }};
proxy_ssl_protocols TLSv1.3;
}
# Admin Console websocket
location ^~ /cool/adminws {
include snippets/proxy-nobuff.conf;
include snippets/proxy-forward-headers.conf;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 36000s;
proxy_set_header Host $http_host;
{% if collabora_code_instances[collabora_code_instance].publish.zone.publisher == inventory_hostname %}
proxy_pass https://127.0.0.1:{{ collabora_code_instances[collabora_code_instance].port }};
{% else %}
proxy_pass https://{{ ansible_default_ipv4.address }}:{{ collabora_code_instances[collabora_code_instance].port }};
{% endif %}
proxy_ssl_trusted_certificate /etc/ssl/apps-publish-{{ collabora_code_instances[collabora_code_instance].publish.zone.name }}/apps-publish-{{ collabora_code_instances[collabora_code_instance].publish.zone.name }}-ca-crt.pem;
proxy_ssl_verify on;
proxy_ssl_name collabora-code-{{ collabora_code_instance }}.{{ inventory_hostname }};
proxy_ssl_protocols TLSv1.3;
}
|