-
Notifications
You must be signed in to change notification settings - Fork 83
/
netlify.toml
82 lines (69 loc) · 1.73 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
82
[build]
command = "npm run build"
publish = "dist"
functions = "functions"
[build.environment]
NODE_VERSION = "20.11"
[[plugins]]
package = "./plugins/webmention-cache"
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
Referrer-Policy= "no-referrer-when-downgrade"
Permissions-Policy = "interest-cohort=()"
[[headers]]
for = "/sw.js"
[headers.values]
cache-control = "max-age=0,no-cache,no-store,must-revalidate"
# Netlify subdomain
[[redirects]]
from = "https://mxb.netlify.com/*"
to = "https://mxb.dev/:splat"
status = 301
force = true
# AT domain
[[redirects]]
from = "https://mxb.at/*"
to = "https://mxb.dev/:splat"
status = 301
force = true
[[redirects]]
from = "https://www.mxb.at/*"
to = "https://mxb.dev/:splat"
status = 301
force = true
[[redirects]]
from = "https://mxb.dev/blog/make-free-stuff-web3"
to = "https://mxb.dev/blog/make-free-stuff"
status = 302
force = true
[[redirects]]
from = "https://mxb.dev/blog/rethinking-social-media"
to = "https://mxb.dev/blog/the-indieweb-for-everyone"
status = 302
force = true
# Bots
[[redirects]]
from = "/wp-login.php"
to = "https://www.fbi.gov"
status = 302
force = true
# Favicon
[[redirects]]
from = "/assets/images/touch/*"
to = "/assets/images/favicon/:splat"
status = 301
force = true
# Mastodon Webfinger
[[redirects]]
from = "/.well-known/webfinger"
to = "https://front-end.social/.well-known/webfinger?resource=acct:mxbck@front-end.social"
status = 200
# 404s
[[redirects]]
from = "*"
to = "/404"
status = 404