-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
45 lines (37 loc) · 1.11 KB
/
netlify.toml
File metadata and controls
45 lines (37 loc) · 1.11 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
[build]
command = "hugo --gc --minify"
publish = "public"
[build.environment]
HUGO_VERSION = "0.118.2"
HUGO_ENVIRONMENT = "production"
HUGO_ENABLEGITINFO = "true"
[[redirects]]
from = "/"
to = "https://my3ml.org"
status = 301
force = true
[[redirects]]
from = "/resources/*"
to = "https://my3ml.org/resources/:splat"
status = 301
force = true
[[headers]]
for = "/*"
[headers.values]
Cache-Control = "public, max-age=86400"
X-Frame-Options = "DENY"
Referrer-Policy = "no-referrer"
X-Content-Type-Options = "nosniff"
Content-Security-Policy = "default-src 'none'; script-src 'self'; connect-src https://api.3ml.org.uk https://api.pwnedpasswords.com; style-src 'self'; img-src https:; media-src https:; object-src 'none';"
[[headers]]
for = "/js/*"
[headers.values]
Cache-Control = "public, max-age=2419200"
[[headers]]
for = "/css/*"
[headers.values]
Cache-Control = "public, max-age=2419200"
[[headers]]
for = "/images/*"
[headers.values]
Cache-Control = "public, max-age=2419200"