mirror of
https://git.ari.lt/ari.lt/blog.ari.lt.git
synced 2025-02-04 17:49:24 +01:00
a791ee2ca0
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
81 lines
1.7 KiB
TOML
81 lines
1.7 KiB
TOML
[build]
|
|
command = "CI_BUILD=1 python3 ./scripts/blog static"
|
|
|
|
[[redirects]]
|
|
from = "/git/*"
|
|
to = "https://ari-web.xyz/gh/blog.ari-web.xyz/:splat"
|
|
status = 301
|
|
force = true
|
|
|
|
[[redirects]]
|
|
from = "/favicon.ico"
|
|
to = "https://ari-web.xyz/favicon.ico"
|
|
status = 200
|
|
force = true
|
|
|
|
[[redirects]]
|
|
from = "/robots.txt"
|
|
to = "https://ari-web.xyz/robots.txt"
|
|
status = 200
|
|
force = true
|
|
|
|
[[redirects]]
|
|
from = "/sitemap.xml"
|
|
to = "https://ari-web.xyz/sitemap.xml"
|
|
status = 200
|
|
force = true
|
|
|
|
[[redirects]]
|
|
from = "/blogs/:blog"
|
|
to = "https://legacy.blog.ari-web.xyz/blogs/:blog"
|
|
status = 301
|
|
force = true
|
|
|
|
[[redirects]]
|
|
from = "/c"
|
|
to = "https://user.ari-web.xyz/"
|
|
status = 301
|
|
force = true
|
|
|
|
[[redirects]]
|
|
from = "/netlify.toml"
|
|
to = "https://ari-web.xyz/404.blog.xyz"
|
|
status = 404
|
|
force = true
|
|
|
|
[[redirects]]
|
|
from = "/*"
|
|
to = "https://ari-web.xyz/404.blog.xyz"
|
|
status = 404
|
|
force = false
|
|
|
|
# Processing
|
|
[build.processing]
|
|
skip_processing = false
|
|
|
|
[build.processing.html]
|
|
pretty_urls = true
|
|
|
|
[build.processing.css]
|
|
bundle = true
|
|
minify = false
|
|
|
|
[build.processing.js]
|
|
bundle = false
|
|
minify = false
|
|
|
|
[build.processing.images]
|
|
compress = true
|
|
# --------------
|
|
|
|
[[headers]]
|
|
for = "/*"
|
|
|
|
[headers.values]
|
|
Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload"
|
|
X-Frame-Options = "deny"
|
|
X-Content-Type-Options = "nosniff"
|
|
Content-Security-Policy = "upgrade-insecure-requests; sandbox; script-src 'sha512-v'; object-src 'none';"
|
|
X-Permitted-Cross-Domain-Policies = "none"
|
|
Referrer-Policy = "no-referrer"
|
|
|