1
0
Fork 0
val.packett.cool/netlify.toml

81 lines
2.1 KiB
TOML

[build]
publish = "_site"
command = """
curl -fsSL https://deno.land/x/install/install.sh | sh && \
/opt/buildhome/.deno/bin/deno task build --location=https://val.packett.cool/ \
"""
[[headers]]
for = "/*"
[headers.values]
strict-transport-security = "max-age=31536000"
x-content-type-options = "nosniff"
x-frame-options = "SAMEORIGIN"
referrer-policy = "no-referrer-when-downgrade"
permissions-policy = "sync-xhr=(), accelerometer=(), camera=(), geolocation=(), microphone=(), usb=()"
content-security-policy = "default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: img.shields.io; script-src 'none'; object-src 'none'"
link = "</x/RecVar1085.woff2>; rel=preload; as=font; type=font/woff2; crossorigin"
[[headers]]
for = "/"
values = { link = "</x/RecVar1085.woff2>; rel=preload; as=font; type=font/woff2; crossorigin, <https://img.shields.io/>; rel=preconnect" }
[[headers]]
for = "/x/*"
values = { cache-control = "public, max-age=31536000, immutable" }
[[headers]]
for = "*.jpg"
values = { cache-control = "public, max-age=31536000, immutable" }
[[headers]]
for = "*.png"
values = { cache-control = "public, max-age=31536000, immutable" }
[[headers]]
for = "*.webp"
values = { cache-control = "public, max-age=31536000, immutable" }
[[headers]]
for = "*.avif"
values = { cache-control = "public, max-age=31536000, immutable" }
[[headers]]
for = "*.jxl"
values = { cache-control = "public, max-age=31536000, immutable" }
[[headers]]
for = "*.svg"
values = { cache-control = "public, max-age=31536000, immutable" }
[[headers]]
for = "*.pdf"
values = { cache-control = "public, max-age=31536000, immutable" }
[[headers]]
for = "/webfinger.json"
values = { content-type = "application/jrd+json" }
[[redirects]]
from = "https://packett.cool/.well-known/webfinger?resource=acct%3Aval%40packett.cool"
to = "/webfinger.json"
status = 200
force = true
[[redirects]]
from = "https://www.packett.cool/*"
to = "https://val.packett.cool/:splat"
status = 301
force = true
[[redirects]]
from = "https://packett.cool/*"
to = "https://val.packett.cool/:splat"
status = 301
force = true
[[redirects]]
from = "/mf2"
to = "https://mf2.packett.cool/"
status = 301