forked from chef/chef-web-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
56 lines (44 loc) · 1.49 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
[build]
publish = "public"
[build.environment]
HUGO_ENABLEGITINFO = "true"
NODE_VERSION = "17"
[build.processing]
skip_processing = true
[context.production]
command = "make bundle; hugo --gc --minify --enableGitInfo"
[context.production.environment]
HUGO_ENV = "production"
[context.deploy-preview]
command = "make bundle; hugo --gc --minify --enableGitInfo --buildFuture"
[context.branch-deploy]
command = "make bundle; hugo --gc --minify --enableGitInfo"
[context.branch-deploy.environment]
HUGO_ENV = "development"
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-Content-Type-Options = "nosniff"
X-XSS-Protection = "X-XSS-Protection: 1"
Referrer-Policy = "no-referrer-when-downgrade"
Strict-Transport-Security = "max-age=2592000"
Permissions-Policy = "vibrate=(), geolocation=(), midi=(), notifications=(), push=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), speaker=(), vibrate=(), fullscreen=(), payment=()"
## redirects traffic from old InSpec docs inspec.io/docs/
## https://docs.netlify.com/routing/redirects/#syntax-for-the-netlify-configuration-file
[[redirects]]
from = "/inspec/reference/*"
to = "/inspec/:splat"
status = 301
[[redirects]]
from = "/resource_*"
to = "/resources/:splat"
status = 301
[[redirects]]
from = "/inspec_reference.html"
to = "/inspec/cli"
status = 301
[[redirects]]
from = "/plugin_knife_windows.html"
to = "/workstation/knife_windows/"
status = 301