-
Notifications
You must be signed in to change notification settings - Fork 157
Expand file tree
/
Copy pathsite.yaml
More file actions
242 lines (194 loc) · 5.96 KB
/
Copy pathsite.yaml
File metadata and controls
242 lines (194 loc) · 5.96 KB
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
domain: canonical.com
image: prod-comms.ps5.docker-registry.canonical.com/canonical.com
env:
- name: CANONICAL_CLA_API_URL
value: https://cla.staging.canonical.com
- name: SENTRY_DSN
value: https://c6217b27586626e049f00f21a2def0c6@o4510662863749120.ingest.de.sentry.io/4510673678499920
- name: GREENHOUSE_API_KEY
secretKeyRef:
key: greenhouse_api_key
name: canonical-com
- name: HARVEST_V3_CLIENT_ID
secretKeyRef:
key: harvest_v3_client_id
name: canonical-com
- name: HARVEST_V3_CLIENT_SECRET
secretKeyRef:
key: harvest_v3_client_secret
name: canonical-com
- name: APPLICATION_CRYPTO_SECRET_KEY
secretKeyRef:
key: application-crypto-key
name: greenhouse-credentials
- name: SEARCH_API_KEY
secretKeyRef:
key: google-custom-search-key
name: google-api
- name: SMTP_SENDER_ADDRESS
value: careers@canonical.com
- name: SMTP_SERVER
secretKeyRef:
key: server
name: smtp-credentials-careers
- name: SMTP_USER
secretKeyRef:
key: user
name: smtp-credentials-careers
- name: SMTP_PASS
secretKeyRef:
key: password
name: smtp-credentials-careers
- name: DIRECTORY_API_TOKEN
secretKeyRef:
key: token
name: directory-api
- name: DISCOURSE_API_KEY
secretKeyRef:
key: ubuntu-api-key
name: discourse-api
- name: DISCOURSE_API_USERNAME
secretKeyRef:
key: ubuntu-api-username
name: discourse-api
- name: MAAS_DISCOURSE_API_KEY
secretKeyRef:
key: maas-api-key
name: discourse-api
- name: MAAS_DISCOURSE_API_USERNAME
secretKeyRef:
key: maas-api-username
name: discourse-api
- name: SERVICE_ACCOUNT_EMAIL
secretKeyRef:
key: scheduler_account_email
name: greenhouse-credentials
- name: SERVICE_ACCOUNT_PRIVATE_KEY
secretKeyRef:
key: scheduler_account_private_key
name: greenhouse-credentials
- name: RECAPTCHA_ENABLED
value: "true"
- name: RECAPTCHA_SITE_KEY
value: "6LcOo40qAAAAAKN6mBrlbr-npUv1zyWSxJknU959"
- name: RECAPTCHA_PROJECT_ID
value: "site-canonical-c-1732626873862"
- name: RECAPTCHA_API_KEY
secretKeyRef:
key: api-key
name: canonical-com-gcloud
- name: RECAPTCHA_SCORE_THRESHOLD
value: "0.5"
- name: SITEMAP_SECRET
secretKeyRef:
key: secret
name: sitemaps
extraHosts:
- domain: blog.canonical.com
- domain: design.canonical.com
- domain: partners.canonical.com
# Overrides for production
production:
replicas: 5
env:
- name: CANONICAL_CLA_API_URL
value: https://cla.canonical.com
- name: FLASK_ENV
value: "production"
routes:
- paths: [/blog]
name: canonical-com-blog
app_name: canonical.com-blog
image: prod-comms.ps5.docker-registry.canonical.com/canonical.com
replicas: 3
memoryLimit: 256Mi
env:
- name: SEARCH_API_KEY
secretKeyRef:
key: google-custom-search-key
name: google-api
- name: APPLICATION_CRYPTO_SECRET_KEY
secretKeyRef:
key: application-crypto-key
name: greenhouse-credentials
- name: SENTRY_DSN
value: https://c6217b27586626e049f00f21a2def0c6@o4510662863749120.ingest.de.sentry.io/4510673678499920
- name: SERVICE_ACCOUNT_EMAIL
secretKeyRef:
key: scheduler_account_email
name: greenhouse-credentials
- name: SERVICE_ACCOUNT_PRIVATE_KEY
secretKeyRef:
key: scheduler_account_private_key
name: greenhouse-credentials
nginxConfigurationSnippet: |
if ($host = 'blog.canonical.com' ) {
rewrite ^ https://canonical.com/blog$request_uri? permanent;
}
if ($host = 'design.canonical.com' ) {
rewrite ^ https://ubuntu.com/blog/topics/design permanent;
}
if ($host = 'partners.canonical.com' ) {
rewrite ^ https://canonical.com permanent;
}
if ($host != 'canonical.com' ) {
rewrite ^ https://canonical.com$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
routes:
- paths: [/blog]
name: canonical-com-blog
app_name: canonical.com-blog
image: prod-comms.ps5.docker-registry.canonical.com/canonical.com
replicas: 3
memoryLimit: 256Mi
env:
- name: SEARCH_API_KEY
secretKeyRef:
key: google-custom-search-key
name: google-api
- name: APPLICATION_CRYPTO_SECRET_KEY
secretKeyRef:
key: application-crypto-key
name: greenhouse-credentials
- name: FLASK_ENV
value: "staging"
- name: SENTRY_DSN
value: https://c6217b27586626e049f00f21a2def0c6@o4510662863749120.ingest.de.sentry.io/4510673678499920
- name: DIRECTORY_API_TOKEN
secretKeyRef:
key: token
name: directory-api
- name: FLASK_DEBUG
value: True
- name: GREENHOUSE_DEBUG
value: "true"
- name: SERVICE_ACCOUNT_EMAIL
secretKeyRef:
key: scheduler_account_email
name: greenhouse-credentials
- name: SERVICE_ACCOUNT_PRIVATE_KEY
secretKeyRef:
key: scheduler_account_private_key
name: greenhouse-credentials
nginxConfigurationSnippet: |
more_set_headers "X-Robots-Tag: noindex";
if ($host != 'staging.canonical.com' ) {
rewrite ^ https://staging.canonical.com$request_uri? permanent;
}
more_set_headers "Link: <https://assets.ubuntu.com>; rel=preconnect; crossorigin, <https://assets.ubuntu.com>; rel=preconnect";
demo:
env:
- name: DIRECTORY_API_TOKEN
secretKeyRef:
key: token
name: directory-api
- name: FLASK_DEBUG
value: True
- name: GREENHOUSE_DEBUG
value: "true"
- name: FLASK_ENV
value: "demo"