-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnetlify.toml
81 lines (73 loc) · 3 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
# Settings in the [build] context are global and are applied to all contexts
# unless otherwise overridden by more specific contexts.
[build]
# Directory to change to before starting a build.
# This is where we will look for package.json/.nvmrc/etc.
# If not set, defaults to the root directory.
base = "/"
# Directory that contains the deploy-ready HTML files and assets generated by
# the build. This is relative to the base directory if one has been set, or the
# root directory if a base has not been set. This sample publishes the
# directory located at the absolute path "root/project/build-output"
publish = "public/"
# Default build command.
command = "hugo"
[[plugins]]
package = "@algolia/netlify-plugin-crawler"
[plugins.inputs]
branches = ['master']
disabled = false
pathPrefix = "/posts"
customDomain = "www.mcmk.in"
renderJavaScript = true
[[plugins]]
package = "netlify-plugin-generate-pdf"
[plugins.inputs]
url="https://cranky-poincare-61f551.netlify.app/docs/cv/"
fileName = "docs/cv/james.mcmeeking.pdf"
[plugins.inputs.margin]
top = '1.2cm'
right = '1cm'
bottom = '1.8cm'
left = '1cm'
[[headers]]
for = "/*"
[headers.values]
X-Content-Type-Options = "nosniff"
X-Frame-Options = "SAMEORIGIN"
X-XSS-Protection = "1; mode=block"
Strict-Transport-Security = "max-age=63115200; includeSubDomains; preload"
Referrer-Policy = "no-referrer, strict-origin-when-cross-origin"
Cross-Origin-Resource-Policy = "same-origin"
Set-Cookie = "__Host-c=1; Path=/; HttpOnly; Secure; SameSite=Lax"
Permissions-Policy = "geolocation=(), microphone=()"
Content-Security-Policy = """
default-src 'none';
script-src 'self' https://utteranc.es/client.js
'sha256-CYXEZK36Ezs8CzmzN55CswoKW0GqxT3ROiF0Jdty9NM='
'sha256-Im75eFACfZktxSKo/DOTa3L9fqO2ITcvduLbJsjVvyM='
'sha256-xJ8Q6L3OjE4Xj5stFYsZKrqcZyWlyryRF8J8oXThvsI='
'sha256-pepoXUTqW6HuN6BxwysJb3DbHQM7l2OiH5LLjaJisXI='
'sha256-WIdwzI/095eqwbyJhRCsmc1q82vSC8LnJ/Wj+VGMNpI='
https://cdn.jsdelivr.net
https://*.cloudfront.net;
style-src 'self' https://fonts.googleapis.com
'sha256-9HupEqQsOKAA3TMVtaZh8USULhFpwYGuWFk+44sVSgg='
'sha256-9Ho0iVW22YiA0BIjtsuozF1bT7cakc6QnCGwBkMChz8='
https://cdn.jsdelivr.net
https://*.cloudfront.net;
object-src 'self';
base-uri 'self';
connect-src 'self' https://*.algolia.net;
font-src 'self' https://cdn.jsdelivr.net https://fonts.gstatic.com;
frame-src 'self' https://utteranc.es;
img-src 'self' https://www.gravatar.com https://*.cloudfront.net https://app.fossa.io https://img.shields.io;
manifest-src 'self';
media-src 'self';
report-uri https://mcmeeking.report-uri.com/r/d/csp/enforce;
worker-src 'self';
"""
# Production context: all deploys from the Production branch set in your site’s
# Branches settings in the UI will inherit these settings.
[context.production]
publish = "public/"