-
Notifications
You must be signed in to change notification settings - Fork 436
/
netlify.toml
68 lines (55 loc) · 1.76 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
[build]
publish = "public"
[build.environment]
HUGO_ENABLEGITINFO = "true"
NODE_VERSION = "19"
[build.processing]
skip_processing = true
[dev]
# local development with the Netlify CLI
command = "bash ./scripts/local-server.sh"
targetPort = 1313
port = 8000
[context.production]
command = "bash ./scripts/netlify-deploy-production.sh"
[context.production.environment]
HUGO_ENV = "production"
[context.deploy-preview]
command = "bash ./scripts/netlify-deploy-preview.sh"
[context.deploy-preview.environment]
HUGO_ENV = "staging"
[context.branch-deploy]
command = "bash ./scripts/netlify-branch-deploy.sh"
[context.branch-deploy.environment]
HUGO_ENV = "branch-deploy"
[[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
[[redirects]]
from = "/360/1.0/*"
to = "https://release-1-0--chef-360.netlify.app/360/1.0/:splat"
status = 200