This repository has been archived by the owner on Jun 15, 2021. It is now read-only.
forked from chris-short/chrisshort.net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
65 lines (56 loc) · 2.78 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
[build]
publish = "public"
command = "hugo --gc --minify"
[context.production.environment]
HUGO_VERSION = "0.82.0"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "false"
[context.split1]
command = "curl -L https://emailoctopus.com/bundles/emailoctopuslist/js/1.6/form-recaptcha.js -o assets/js/extended/form-recaptcha.js && curl -L https://emailoctopus.com/bundles/emailoctopuslist/js/1.6/form-embed.js -o assets/js/extended/form-embed.js && hugo --gc --minify --enableGitInfo"
[context.split1.environment]
HUGO_VERSION = "0.82.0"
HUGO_ENV = "production"
[context.deploy-preview]
command = "curl -L https://emailoctopus.com/bundles/emailoctopuslist/js/1.6/form-recaptcha.js -o assets/js/extended/form-recaptcha.js && curl -L https://emailoctopus.com/bundles/emailoctopuslist/js/1.6/form-embed.js -o assets/js/extended/form-embed.js && hugo --gc -DF -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment]
HUGO_VERSION = "0.82.0"
# Skip all post processing in deploy previews,
# ignoring any other settings
[context.deploy-preview.processing]
skip_processing = true
[context.branch-deploy]
command = "curl -L https://emailoctopus.com/bundles/emailoctopuslist/js/1.6/form-recaptcha.js -o assets/js/extended/form-recaptcha.js && curl -L https://emailoctopus.com/bundles/emailoctopuslist/js/1.6/form-embed.js -o assets/js/extended/form-embed.js && hugo --gc -DF -b $DEPLOY_PRIME_URL"
[context.branch-deploy.environment]
HUGO_VERSION = "0.82.0"
[context.next.environment]
HUGO_ENABLEGITINFO = "false"
# https://docs.netlify.com/configure-builds/file-based-configuration/#post-processing
# If skip_processing = true, all other settings are ignored
[build.processing]
skip_processing = false
[build.processing.css]
bundle = true
minify = true
[build.processing.js]
bundle = true
minify = true
[build.processing.html]
pretty_urls = false
[build.processing.images]
compress = true
[[redirects]]
from = "https://chrisshort.netlify.app/*"
to = "https://chrisshort.net/:splat"
status = 301
force = true
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
Referrer-Policy = "no-referrer, strict-origin-when-cross-origin"
X-Content-Type-Options = "nosniff"
Permissions-Policy = "geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera 'none'; magnetometer 'none'; gyroscope 'none'; speaker 'none'; fullscreen 'none'; payment 'none'"
# Content-Security-Policy-Report-Only = "default-src 'none'; form-action 'none'; frame-ancestors 'none'; report-uri https://chrisshort.report-uri.com/r/d/csp/wizard"
Report-To = '{"group":"default","max_age":31536000,"endpoints":[{"url":"https://chrisshort.report-uri.com/a/d/g"}],"include_subdomains":true}'
NEL = '{"report_to":"default","max_age":31536000,"include_subdomains":true}'