-
Notifications
You must be signed in to change notification settings - Fork 31
/
netlify.toml
251 lines (196 loc) · 8.67 KB
/
netlify.toml
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
# Hugo build configuration for Netlify
# (https://gohugo.io/hosting-and-deployment/hosting-on-netlify/#configure-hugo-version-in-netlify)
# Default build settings
[build]
publish = "public"
command = "hugo --gc --minify"
# "production" environment specific build settings
[build.environment]
HUGO_VERSION = "0.110.0"
HUGO_ENV = "production"
GO_VERSION = "1.18"
# section redirects
[[redirects]]
from = "/docs/release-notes/rn-armory-agent/*"
to = "/plugins/scale-agent/release-notes/:splat"
[[redirects]]
from = "/docs/release-notes/rn-armory-agent/agent-plugin/*"
to = "/plugins/scale-agent/release-notes/agent-plugin/:splat"
[[redirects]]
from = "/docs/release-notes/rn-armory-agent/agent-service/*"
to = "/plugins/scale-agent/release-notes/agent-service/:splat"
[[redirects]]
from = "/armory-enterprise/release-notes/rn-armory-agent/*"
to = "/plugins/scale-agent/release-notes/:splat"
[[redirects]]
from = "/continuous-deployment/release-notes/rn-armory-agent/*"
to = "/scale-agent/release-notes/:splat"
[[redirects]]
from = "/armory-enterprise/armory-agent/*"
to = "/plugins/scale-agent/:splat"
[[redirects]]
from = "/continuous-deployment/armory-agent/*"
to = "/plugins/scale-agent/:splat"
[[redirects]]
from = "/scale-agent/*"
to = "/plugins/scale-agent/:splat"
[[redirects]]
from = "/continuous-deployment/armory-admin/pipelines-as-code-enable/"
to = "/plugins/pipelines-as-code/install/armory-cd/"
force = true # ensure this always redirects because the "from" page does exist and does a TOC redirect but not for users clicking web search result link
[[redirects]]
from = "/continuous-deployment/armory-admin/policy-engine/policy-engine-use/*"
to = "/plugins/policy-engine/use/:splat"
# terraform plugin redirects
[[redirects]]
from = "/continuous-deployment/armory-admin/terraform-enable-integration/"
to = "/plugins/terraform/install/armory-cd/"
force = true # ensure this always redirects because the "from" page does exist and does a TOC redirect but not for users clicking web search result link
[[redirects]]
from = "/continuous-deployment/spinnaker-user-guides/terraform-use-integration/"
to = "/plugins/terraform/use/"
# cloudwatch plugin redirect
[[redirects]]
from = "/continuous-deployment/spinnaker-user-guides/kayenta-canary-cloudwatch/"
to = "/plugins/aws-cloudwatch/"
[[redirects]]
from = "/continuous-deployment/plugin-guide/*"
to = "/plugins/:splat"
[[redirects]]
from = "/docs/*"
to = "/continuous-deployment/:splat"
[[redirects]]
from = "/armory-enterprise/*"
to = "/continuous-deployment/:splat"
# cdaas redirects
# The Netlify redirects engine will process the first matching rule it finds, reading from top to bottom. The redirect engine processes the first matching rule it finds, so more specific rules should be listed before more general ones
# https://docs.netlify.com/routing/redirects/
# https://docs.netlify.com/routing/redirects/redirect-options/
# status = 301 (default); permanent redirect code. Tells the client that the address for this resource has permanently changed, and any indexes using the old address should start using the new one. The URL in the browser address bar will display the new address.
[[redirects]]
from = "/cd-as-a-service/reference/ref-deployment-file/"
to = "https://developer.armory.io/docs/reference/deployment/config-file/"
[[redirects]]
from = "/cd-as-a-service/reference/ref-queries/"
to = "https://developer.armory.io/docs/reference/canary-analysis-query/"
[[redirects]]
from = "/cd-as-a-service/reference/ref-queries/"
to = "https://developer.armory.io/docs/reference/canary-analysis-query/"
[[redirects]]
from = "/cd-as-a-service/setup/quickstart/"
to = "https://developer.armory.io/docs/get-started/quickstart/"
[[redirects]]
from = "/cd-as-a-service/setup/deploy-your-app/"
to = "https://developer.armory.io/docs/get-started/deploy-your-app/"
[[redirects]]
from = "/cd-as-a-service/setup/gh-action/"
to = "https://developer.armory.io/docs/integrations/ci-systems/gh-action/"
[[redirects]]
from = "/cd-as-a-service/setup/blue-green/"
to = "https://developer.armory.io/docs/deployment/strategies/blue-green/"
[[redirects]]
from = "/cd-as-a-service/setup/canary/"
to = "https://developer.armory.io/docs/deployment/strategies/canary/"
[[redirects]]
from = "/cd-as-a-service/setup/argo-rollouts/"
to = "https://developer.armory.io/docs/deployment/kubernetes/argo-rollouts/"
[[redirects]]
from = "/cd-as-a-service/concepts/external-automation/"
to = "https://developer.armory.io/docs/webhooks/overview/"
[[redirects]]
from = "/cd-as-a-service/tasks/webhook-approval/"
to = "https://developer.armory.io/docs/webhooks/webhook-approval/"
[[redirects]]
from = "/cd-as-a-service/tasks/cli/"
to = "https://developer.armory.io/docs/cli/"
[[redirects]]
from = "/cd-as-a-service/tasks/deploy/monitor-deployment/"
to = "https://developer.armory.io/docs/deployment/monitor-deployment/"
[[redirects]]
from = "/cd-as-a-service/tasks/deploy/create-deploy-config/"
to = "https://developer.armory.io/docs/deployment/create-deploy-config/"
[[redirects]]
from = "/cd-as-a-service/tasks/deploy/add-context-variable/"
to = "https://developer.armory.io/docs/deployment/add-context-variable/"
[[redirects]]
from = "/cd-as-a-service/tasks/deploy/deploy-with-creds/"
to = "https://developer.armory.io/docs/deployment/deploy-with-creds/"
[[redirects]]
from = "/cd-as-a-service/tasks/deploy/preview-link/"
to = "https://developer.armory.io/docs/reference/deployment/config-preview-link/"
[[redirects]]
from = "/cd-as-a-service/tasks/deploy/role-based-manual-approval/"
to = "https://developer.armory.io/docs/reference/deployment/config-role-based-manual-approval/"
[[redirects]]
from = "/cd-as-a-service/tasks/secrets/secrets-create/"
to = "https://developer.armory.io/docs/iam/manage-secrets/"
[[redirects]]
from = "/cd-as-a-service/tasks/deploy/traffic-management/linkerd/"
to = "https://developer.armory.io/docs/traffic-management/linkerd/"
[[redirects]]
from = "/cd-as-a-service/tasks/deploy/traffic-management/istio/"
to = "https://developer.armory.io/docs/traffic-management/istio/"
[[redirects]]
from = "/cd-as-a-service/tutorials/deploy-sample-app/"
to = "https://developer.armory.io/docs/tutorials/deploy-sample-app/"
[[redirects]]
from = "/cd-as-a-service/tutorials/external-automation/webhook-github/"
to = "https://developer.armory.io/docs/tutorials/tutorial-webhook-github/"
# redirect anything in concepts/deployment
[[redirects]]
from = "/cd-as-a-service/concepts/deployment/*"
to = "https://developer.armory.io/docs/deployment/overview/"
# redirect anything in concepts/architecture/
[[redirects]]
from = "/cd-as-a-service/concepts/architecture/*"
to = "https://developer.armory.io/docs/architecture/"
# redirect anything in concepts/iam/
[[redirects]]
from = "/cd-as-a-service/concepts/iam/*"
to = "https://developer.armory.io/docs/iam/"
# redirect anything in tasks/networking
[[redirects]]
from = "/cd-as-a-service/tasks/networking/*"
to = "https://developer.armory.io/docs/remote-network-agent/overview/"
# redirect anything in tutorials/access-management/
[[redirects]]
from = "/cd-as-a-service/tutorials/access-management/*"
to = "https://developer.armory.io/docs/tutorials/tutorial-rbac-users/"
# redirect anything in /release-notes/
[[redirects]]
from = "cd-as-a-service/release-notes/*"
to = "https://developer.armory.io/docs/release-notes/"
# redirect anything in /troubleshooting/
[[redirects]]
from = "cd-as-a-service/troubleshooting/*"
to = "https://developer.armory.io/docs/troubleshooting/"
# this has to be last since it functions as a catchall for paths not previously defined
[[redirects]]
from = "/cd-as-a-service/*"
to = "http://developer.armory.io"
# https://github.com/netlify-labs/netlify-plugin-sitemap
[[plugins]]
package = "@netlify/plugin-sitemap"
[plugins.inputs]
buildDir = "public"
# make sure you add a comma after each entry in the exclude list except on the last one
exclude =[
'./public/plugins/plugin-appname/',
'./public/plugins/plugin-external-account/',
'./public/plugins/plugin-iam-authentication/',
'./public/continuous-deployment/feature-status/deprecations/pacrd-deprecation/',
'./public/continuous-deployment/installation/deployment-reg/',
'./public/managed-spin',
'./public/contribute',
'./public/continuous-deployment/try/'
]
# append missing trailing slash to prettyURL
trailingSlash = true
changeFreq = "daily"
priority = 0.5
# headers https://docs.netlify.com/routing/headers/#syntax-for-the-headers-file
# https://cloud-armory.slack.com/archives/CH4RVCCTS/p1608572781420500
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "SAMEORIGIN"