-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnetlify.toml
More file actions
71 lines (59 loc) · 1.6 KB
/
netlify.toml
File metadata and controls
71 lines (59 loc) · 1.6 KB
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
[dev]
command = "hugo serve"
targetPort = 1313
port = 8888
publish = "public"
autoLaunch = false
[build.environment]
HUGO_VERSION = "0.157.0"
NODE_VERSION = "18"
[build]
# Can't set this here since I need it to be overrideable from the web UI for drafts.msfjarvis.dev
# command = "hugo --gc --minify && npx -y pagefind --site public"
publish = "public"
[[edge_functions]]
path = "/*"
function = "root"
[[edge_functions]]
function = "webfinger"
path = "/.well-known/webfinger"
[[redirects]]
from = "/robots.txt"
to = "/robots.txt"
status = 200
[[redirects]]
from = "/sitemap.xml"
to = "/sitemap.xml"
status = 200
[[redirects]]
from = "/posts/:slug.txt"
to = "/posts/:slug/index.txt"
status = 200
[[headers]]
for = "/*"
[headers.values]
Content-Security-Policy = "script-src identity.netlify.com stats01.msfjarvis.dev msfjarvis.dev utteranc.es 'unsafe-inline' 'wasm-unsafe-eval'; object-src 'none';"
Referrer-Policy = 'strict-origin-when-cross-origin'
X-Content-Type-Options = "nosniff"
X-Frame-Options = "DENY"
X-XSS-Protection = '1; mode=block'
[[headers]]
for = "/admin/*"
[headers.values]
Content-Security-Policy = "script-src identity.netlify.com unpkg.com 'unsafe-inline' 'unsafe-eval'"
Referrer-Policy = 'strict-origin-when-cross-origin'
X-Content-Type-Options = "nosniff"
X-Frame-Options = "DENY"
X-XSS-Protection = '1; mode=block'
[[headers]]
for = "/pretty-feed-v3.xsl"
[headers.values]
Content-Type = "application/xml; charset=utf-8"
[[headers]]
for = "/posts/*.txt"
[headers.values]
Content-Type = "text/plain; charset=utf-8"
[[headers]]
for = "/posts/*/*.txt"
[headers.values]
Content-Type = "text/plain; charset=utf-8"