-
Notifications
You must be signed in to change notification settings - Fork 42
/
site.yaml
61 lines (53 loc) · 1.79 KB
/
site.yaml
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
domain: maas.io
image: prod-comms.ps5.docker-registry.canonical.com/maas.io
env:
- name: SENTRY_DSN
value: https://[email protected]//6
- name: SEARCH_API_KEY
secretKeyRef:
key: google-custom-search-key
name: google-api
- name: DISCOURSE_API_KEY
secretKeyRef:
key: maas-api-key
name: discourse-api
- name: DISCOURSE_API_USERNAME
secretKeyRef:
key: maas-api-username
name: discourse-api
extraHosts:
- domain: docs.maas.io
- domain: maas.ubuntu.com
- domain: maas.ubunut.com
# Overrides for production
production:
replicas: 5
nginxConfigurationSnippet: |
if ($host = 'maas.ubuntu.com' ) {
rewrite ^ https://maas.io/legacy$request_uri? permanent;
}
if ($host = 'maas.ubunut.com' ) {
rewrite ^ https://maas.io/legacy$request_uri? permanent;
}
if ($host = 'docs.maas.io' ) {
rewrite ^ https://maas.io/docs$request_uri? permanent;
}
if ($host != 'maas.io' ) {
rewrite ^ https://maas.io$request_uri? permanent;
}
more_set_headers "Link: <https://assets.ubuntu.com>; rel=preconnect; crossorigin, <https://assets.ubuntu.com>; rel=preconnect";
# Overrides for staging
staging:
replicas: 3
nginxConfigurationSnippet: |
if ($host = 'maas.staging.ubuntu.com' ) {
rewrite ^ https://staging.maas.io/legacy$request_uri? permanent;
}
if ($host = 'maas.staging.ubunut.com' ) {
rewrite ^ https://staging.maas.io/legacy$request_uri? permanent;
}
if ($host = 'docs.staging.maas.io' ) {
rewrite ^ https://staging.maas.io/docs$request_uri? permanent;
}
more_set_headers "X-Robots-Tag: noindex";
more_set_headers "Link: <https://assets.ubuntu.com>; rel=preconnect; crossorigin, <https://assets.ubuntu.com>; rel=preconnect";