-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
63 lines (52 loc) · 1.76 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
[[headers]]
for = "/*"
[headers.values]
Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload"
Content-Security-Policy = "default-src data: 'unsafe-inline' 'unsafe-eval' https:; script-src data: 'unsafe-inline' 'unsafe-eval' https: blob:; style-src data: 'unsafe-inline' https:; img-src data: https: blob:; font-src data: https:; connect-src https: wss: blob:; media-src https: blob:; object-src https:; child-src https: data: blob:; form-action https:; block-all-mixed-content"
X-Frame-Options = "DENY"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "no-referrer"
Feature-Policy = "microphone 'none'; geolocation 'none'"
[[headers]]
for = "/*.png"
[headers.values]
Cache-Control = "max-age=3153600"
[[headers]]
for = "/*.gif"
[headers.values]
Cache-Control = "max-age=3153600"
[[headers]]
for = "/*.js"
[headers.values]
Cache-Control = "max-age=3153600"
[[headers]]
for = "/*.css"
[headers.values]
Cache-Control = "max-age=3153600"
[[redirects]]
from = "/resources"
to = "https://ryanyao.me/ux-ui-resources"
status = 200
force = false
[[redirects]]
from = "/.well-known/host-meta*"
to = "https://social.ry.xxx/.well-known/host-meta:splat"
status = 301
force = false
[[redirects]]
from = "/.well-known/webfinger*"
to = "https://social.ry.xxx/.well-known/webfinger:splat"
status = 301
force = false
[[redirects]]
from = "/.well-known/nodeinfo*"
to = "https://social.ry.xxx/.well-known/nodeinfo:splat"
status = 301
force = false
[[plugins]]
package = "netlify-plugin-mastodon-alias"
[plugins.inputs]
username = "ryanyao"
instance = "mas.to"
# delete or comment the next line if you want "*@ry.xxx" to work rather than just "[email protected]"
strictUsername = "ryan"