-
Notifications
You must be signed in to change notification settings - Fork 19
/
www-deploy.yml
310 lines (291 loc) · 11.9 KB
/
www-deploy.yml
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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
# Install NGINX
- hosts: www
roles:
- role: ome.ssl_certificate
- role: ome.nginx_proxy
tags: nginxconf
handlers:
- name: reload nginx
listen: ssl certificate changed
become: true
service:
name: nginx
state: reloaded
vars:
nginx_proxy_worker_processes: "{{ ((ansible_processor_count * ansible_processor_cores) / 2) |round|int }}"
nginx_proxy_worker_connections: 65000
nginx_proxy_ssl: True
nginx_proxy_ssl_certificate: "{{ ssl_certificate_bundled_path }}"
nginx_proxy_ssl_certificate_key: "{{ ssl_certificate_key_path }}"
nginx_proxy_http2: True
nginx_proxy_force_ssl: False
nginx_proxy_404: "/404.html"
nginx_proxy_conf_http:
- "client_max_body_size 2g"
nginx_proxy_backends:
# Proxy for QA application
- location: /qa2
server: https://www-legacy.openmicroscopy.org/qa2
- location: /static
server: https://www-legacy.openmicroscopy.org
# Proxy locations for OME Data Model schemas
- location: /Schemas
server: https://www-legacy.openmicroscopy.org/Schemas
- location: /XMLschemas
server: https://www-legacy.openmicroscopy.org/XMLschemas
- location: /schema_doc
server: https://www-legacy.openmicroscopy.org
nginx_proxy_redirect_map_locations:
# TODO: change to 301 when we're happy
- location: "~ ^/(BIO-FORMATS)($|/)"
code: 302
- location: "~ ^/(OME-FILES)($|/)"
code: 302
- location: "~ ^/(OMERO)($|/)"
code: 302
- location: "~ ^/(site)($|/)"
code: 302
- location: "~ ^/(omero-blog)($|/)"
code: 302
- location: "~ ^/(info)($|/)"
code: 302
- location: "~ ^/(forums)($|/)"
code: 302
nginx_proxy_redirect_map:
# by default redirect to the 404 page
- match: default
dest: /404.html
- match: "~/omero-blog.*"
dest: http://blog.openmicroscopy.org
- match: "~/site/?$"
dest: /
- match: "~/site/news/?$"
dest: /announcements
# about
- match: "~/site/about/?$"
dest: /about
- match: "~/site/about/who-ome"
dest: /teams
- match: "~/site/about/licensing"
dest: /licensing
- match: "~/site/about/licensing-attribution(/.*)?$"
dest: /licensing
- match: "~/site/about/ome-contributors/?$"
dest: /contributors
- match: "~/site/about/partners/?$"
dest: /commercial-partners
- match: "~/site/about/development-teams/?$"
dest: /teams
- match: "~/site/about/development-teams/glencoe-software"
dest: https://www.glencoesoftware.com/team.html
- match: "~/site/about/publications"
dest: /citing-ome
- match: "~/site/about/what-omero/overview"
dest: /omero
- match: "~/site/about/(?<link>.*)$"
dest: /about
# products
- match: "~/site/products/?$"
dest: /products
- match: "~/site/products/omero/?$"
dest: /omero
- match: "~/site/products/omero/downloads/?$"
dest: /omero/downloads/
- match: "~/site/products/omero/feature-list/?$"
dest: /omero/features/
- match: "~/site/products/omero/big-images-support/?$"
dest: /omero/view/
- match: "~/site/products/omero/secvuln/?$"
dest: /security/advisories/
- match: "~/site/products/ome5/secvuln/?$"
dest: /security/advisories/
- match: "~/site/products/omero/secvuln/(?<link>.*[^/])/?$"
dest: /security/advisories/$link/
- match: "~/site/products/bio-formats/?$"
dest: /bio-formats
- match: "~/site/products/bio-formats/downloads/?$"
dest: /bio-formats/downloads/
- match: "~/site/products/ome-files-cpp/?$"
dest: /ome-files
- match: "~/site/products/(?<link>.*)$"
dest: /products
# community
- match: "~/forums/?$"
dest: https://forum.image.sc/c/data-management
- match: "~/site/community/?$"
dest: /support
- match: "~/site/community/mailing-lists/?$"
dest: /support
- match: "~/site/events(/.*)?$"
dest: /events
- match: "~/site/community/minutes/conference-calls/?$"
dest: /on-the-web
- match: "~/site/community/minutes/meetings/12th-annual-users-meeting-2017"
dest: /events/12th-annual-users-meeting-2017.html
- match: "~/site/community/minutes/meetings/11th-annual-users-meeting-2016"
dest: /events/11th-annual-users-meeting-2016.html
- match: "~/site/community/minutes/meetings/10th-annual-users-meeting-june-2015"
dest: /events/10th-annual-users-meeting-june-2015.html
- match: "~/site/community/minutes/meetings/9th-annual-users-meeting-june-2014"
dest: /events/9th-annual-users-meeting-june-2014.html
- match: "~/site/community/jobs/?$"
dest: /careers
- match: "~/site/community/scripts/?$"
dest: https://docs.openmicroscopy.org/latest/omero/developers/scripts/index.html
- match: "~/site/community/(?<link>.*)$"
dest: /support
# support
- match: "~/site/support/?$"
dest: /docs
- match: "~/site/support/bio-formats/?$"
dest: https://docs.openmicroscopy.org/latest/bio-formats/
- match: "~/site/support/bio-formats/(?<link>.*)$"
dest: https://docs.openmicroscopy.org/latest/bio-formats/$link
- match: "~/site/support/bio-formats5/?$"
dest: https://docs.openmicroscopy.org/latest/bio-formats5/
- match: "~/site/support/bio-formats5/(?<link>.*)$"
dest: https://docs.openmicroscopy.org/latest/bio-formats5/$link
- match: '~/site/support/bio-formats5\.3/?$'
dest: https://docs.openmicroscopy.org/latest/bio-formats5.3/
- match: '~/site/support/bio-formats5\.3/(?<link>.*)$'
dest: https://docs.openmicroscopy.org/latest/bio-formats5.3/$link
- match: '~/site/support/bio-formats5\.4/?$'
dest: https://docs.openmicroscopy.org/latest/bio-formats5.4/
- match: '~/site/support/bio-formats5\.4/(?<link>.*)$'
dest: https://docs.openmicroscopy.org/latest/bio-formats5.4/$link
- match: '~/site/support/bio-formats5\.5/?$'
dest: https://docs.openmicroscopy.org/latest/bio-formats5.5/
- match: '~/site/support/bio-formats5\.5/(?<link>.*)$'
dest: https://docs.openmicroscopy.org/latest/bio-formats5.5/$link
- match: "~/site/support/omero/?$"
dest: https://docs.openmicroscopy.org/latest/omero/
- match: "~/site/support/omero/(?<link>.*)$"
dest: https://docs.openmicroscopy.org/latest/omero/$link
- match: "~/site/support/omero5/?$"
dest: https://docs.openmicroscopy.org/latest/omero5/
- match: "~/site/support/omero5/(?<link>.*)$"
dest: https://docs.openmicroscopy.org/latest/omero5/$link
- match: '~/site/support/omero5\.0/?$'
dest: https://docs.openmicroscopy.org/latest/omero5.0/
- match: '~/site/support/omero5\.0/(?<link>.*)$'
dest: https://docs.openmicroscopy.org/latest/omero5.0/$link
- match: '~/site/support/omero5\.1/?$'
dest: https://docs.openmicroscopy.org/latest/omero5.1/
- match: '~/site/support/omero5\.1/(?<link>.*)$'
dest: https://docs.openmicroscopy.org/latest/omero5.1/$link
- match: '~/site/support/omero5\.2/?$'
dest: https://docs.openmicroscopy.org/latest/omero5.2/
- match: '~/site/support/omero5\.2/(?<link>.*)$'
dest: https://docs.openmicroscopy.org/latest/omero5.2/$link
- match: '~/site/support/omero5\.3/?$'
dest: https://docs.openmicroscopy.org/latest/omero5.3/
- match: '~/site/support/omero5\.3/(?<link>.*)$'
dest: https://docs.openmicroscopy.org/latest/omero5.3/$link
- match: "~/site/support/ome-model/?$"
dest: https://docs.openmicroscopy.org/latest/ome-model/
- match: "~/site/support/ome-model/(?<link>.*)$"
dest: https://docs.openmicroscopy.org/latest/ome-model/$link
- match: "~/site/support/file-formats/?$"
dest: https://docs.openmicroscopy.org/latest/ome-model/
- match: "~/site/support/file-formats/schemas/specifications/compliant-file-specification/?$"
dest: https://docs.openmicroscopy.org/latest/ome-model/specifications/
- match: "~/site/support/ome-tiff/?$"
dest: https://docs.openmicroscopy.org/latest/ome-model/ome-tiff/
- match: "~/site/support/ome-files-cpp/?$"
dest: https://docs.openmicroscopy.org/latest/ome-files-cpp/
- match: "~/site/support/ome-files-cpp/(?<link>.*)$"
dest: https://docs.openmicroscopy.org/latest/ome-files-cpp/$link
- match: "~/site/support/contributing/?$"
dest: https://docs.openmicroscopy.org/contributing/
- match: "~/site/support/contributing/(?<link>.*)$"
dest: https://docs.openmicroscopy.org/contributing/$link
- match: "~/site/support/previous(/.*)?$"
dest: https://docs.openmicroscopy.org
- match: "~/site/support/ome-artwork(/.*)?$"
dest: /artwork
# uppercase alias
- match: "~/BIO-FORMATS$"
dest: /bio-formats
- match: "~/BIO-FORMATS/(?<link>.*)$"
dest: /bio-formats/$link
- match: "~/OME-FILES$"
dest: /ome-files
- match: "~/OME-FILES/(?<link>.*)$"
dest: /ome-files/$link
- match: "~/OMERO$"
dest: /omero
- match: "~/OMERO/(?<link>.*)$"
dest: /omero/$link
# info
- match: "~/info/vulnerabilities/?$"
dest: /security/advisories/
- match: "~/info/vulnerabilities/(?<link>.*[^/])/?$"
dest: /security/advisories/$link/
- match: "~/info/omero/?$"
dest: /omero
- match: "~/info/OMERO.insight/?$"
dest: https://docs.openmicroscopy.org/latest/omero/users/index.html
- match: "~/info/OMERO.importer/?$"
dest: https://docs.openmicroscopy.org/latest/omero/users/index.html
- match: "~/info/OMERO.editor/?$"
dest: https://docs.openmicroscopy.org/latest/omero/users/index.html
- match: "~/info/OMERO.web/?$"
dest: https://docs.openmicroscopy.org/latest/omero/users/index.html
- match: "~/info/OMERO.server"
dest: https://docs.openmicroscopy.org/latest/omero/users/index.html
- match: "~/info/permissions"
dest: https://docs.openmicroscopy.org/latest/omero/sysadmins/server-permissions.html
- match: "~/info/demo"
dest: http://help.openmicroscopy.org/demo-server.html
- match: "~/info/cls"
dest: /omero/downloads/
- match: "~/info/download"
dest: /omero/downloads/
- match: "~/info/downloads"
dest: /omero/downloads/
- match: "~/info/lists"
dest: http://lists.openmicroscopy.org.uk/mailman/listinfo/
- match: "~/info/videos"
dest: https://www.youtube.com/channel/UCyySB9ZzNi8aBGYqcxSrauQ
- match: "~/info/attribution"
dest: /licensing/
- match: "~/info/downgrade"
dest: https://docs.openmicroscopy.org/latest/omero/developers/Model/XsltTransformations.html
- match: "~/info/flimfit"
dest: http://flimfit.org
- match: "~/info/scripts"
dest: https://docs.openmicroscopy.org/latest/omero/developers/scripts/index.html
- match: "~/info/bio-formats(/.*)?$"
dest: https://docs.openmicroscopy.org/latest/bio-formats/
- match: "~/info/slidebook"
dest: https://www.intelligent-imaging.com/technical-answers
- match: "~/info/(.*)?$"
dest: /site-map
nginx_proxy_direct_locations:
- location: "/"
root: "/var/www/www.openmicroscopy.org/html"
index: index.html
# Static copy of old phpBB forums: treat query params as part of filename
- location: "~ ^/community/style.php.*"
root: /var/www/phpbbforum/www.openmicroscopy.org
custom:
- try_files $request_uri $uri =404
- default_type text/css
- location: "~ ^/community/?$"
redirect301: /community/index.php
- location: /community
root: /var/www/phpbbforum/www.openmicroscopy.org
custom:
# Need to exclude extra query parameters in incoming external links
# e.g. sid=
# If an exact match isn't found try just these parameters:
# [f, t, p], [f, t], [f]
- >-
try_files
$request_uri
$uri?f=$arg_f&t=$arg_t&p=$arg_p
$uri?f=$arg_f&t=$arg_t
$uri?f=$arg_f
=404
- default_type text/html
- include: www-static.yml