ari.lt/netlify.toml

206 lines
4.4 KiB
TOML
Raw Normal View History

2021-10-22 09:00:41 +03:00
[build]
command = "make netlify"
2021-10-22 09:00:41 +03:00
2021-09-05 03:49:57 +03:00
[[redirects]]
from = "/404.html"
2021-09-05 03:52:51 +03:00
to = "/page/404/index.html"
status = 302
2021-09-05 03:51:38 +03:00
force = true
2021-10-23 00:57:35 +03:00
2021-10-30 00:18:42 +03:00
[[redirects]]
from = "/gentoo_stage3_nmor"
to = "https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/releases/amd64/autobuilds/current-stage3-amd64-nomultilib-openrc/"
status = 301
2021-10-30 00:18:42 +03:00
force = true
# used to be https://codeberg.org/Ashley/poketube
[[redirects]]
from = "/yt/*"
to = "https://invidious.tiekoetter.com/:splat"
status = 302
force = true
[[redirects]]
from = "/m"
to = "/yt/watch?v=8MMa35B3HT8"
status = 302
force = true
# https://codeberg.org/teddit/teddit
[[redirects]]
from = "/r/*"
to = "https://teddit.net/r/:splat"
status = 302
force = true
[[redirects]]
from = "/api"
to = "/api/apis.json"
status = 302
force = true
2022-01-17 21:27:22 +02:00
# ARI-WEB-SPECIFIC #
[[redirects]]
from = "/favicon.ico"
to = "/favicons/ari-web-ukraine.png"
status = 200
force = true
2021-12-13 12:47:53 +00:00
[[redirects]]
from = "/user"
to = "https://user.ari-web.xyz/"
status = 301
force = true
2021-10-30 00:18:42 +03:00
[[redirects]]
from = "/git/*"
to = "https://github.com/TruncatedDinosour/website/:splat"
status = 301
2021-10-30 00:18:42 +03:00
force = true
2021-10-30 01:21:01 +03:00
[[redirects]]
from = "/dotfiles/*"
to = "https://github.com/TruncatedDinosour/dotfiles-cleaned/:splat"
status = 301
2021-10-30 01:21:01 +03:00
force = true
[[redirects]]
from = "/tdotfiles/*"
to = "https://github.com/TruncatedDinosour/dotfiles-termux/:splat"
status = 301
force = true
2021-10-30 01:21:01 +03:00
2021-10-30 01:57:17 +03:00
[[redirects]]
2021-10-30 02:03:01 +03:00
from = "/dotfile/:distro/*"
to = "https://github.com/TruncatedDinosour/dotfiles-cleaned/tree/:distro/:splat"
status = 301
2021-10-30 01:57:17 +03:00
force = true
[[redirects]]
from = "/overlay/*"
to = "https://github.com/TruncatedDinosour/dinolay/:splat"
status = 301
2021-10-30 23:03:42 +03:00
force = true
[[redirects]]
2021-10-31 03:10:11 +03:00
from = "/gentooatom/*"
2021-10-30 23:03:42 +03:00
to = "https://github.com/TruncatedDinosour/dinolay/tree/main/:splat"
status = 301
2021-10-30 23:03:42 +03:00
force = true
# https://answers.netlify.com/t/how-do-i-do-cross-domain-redirects-to-github-repositories-from-netlify/52258/2?u=b00bleatea
[[redirects]]
from = "/gh/*"
to = "https://github.com/TruncatedDinosour/:splat"
status = 301
force = true
## BACKWARDS COMPATIBILITY ##
[[redirects]]
from = "/data/*"
to = "https://files.ari-web.xyz/files/:splat"
status = 301
force = true
[[redirects]]
from = "/page/blog/*"
to = "https://blog.ari-web.xyz/:splat"
status = 301
force = true
[[redirects]]
from = "/page/blog"
to = "https://blog.ari-web.xyz/"
status = 301
force = true
[[redirects]]
from = "/90s.html"
to = "/page/90s/index.html"
status = 301
force = true
[[redirects]]
from = "/etc"
to = "https://etc.ari-web.xyz/"
status = 301
force = true
####################
[[redirects]]
from = "/gentoo_stage3_nmorh"
to = "https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/releases/amd64/autobuilds/current-stage3-amd64-hardened-nomultilib-openrc/"
status = 301
force = true
2021-11-03 03:35:28 +02:00
[[redirects]]
from = "/mp"
to = "https://www.youtube.com/playlist?list=PL7UuKajElTaChff3BkcJE6620lSuSUaDC"
status = 301
2021-11-03 03:35:28 +02:00
force = true
[[redirects]]
from = "/mr"
to = "https://blog.ari-web.xyz/b/my-music-artist-recommendations/"
status = 301
force = true
2021-10-30 00:29:55 +03:00
[[redirects]]
from = "/:page"
to = "/page/:page"
status = 302
2021-10-30 00:29:55 +03:00
force = false
2021-10-23 00:58:42 +03:00
[[redirects]]
from = "/*"
to = "/page/404/index.html"
status = 404
force = false
2021-11-03 03:35:28 +02:00
# Processing
[build.processing]
skip_processing = false
[build.processing.html]
pretty_urls = false
[build.processing.css]
bundle = true
minify = true
[build.processing.js]
bundle = false
minify = true
[build.processing.images]
compress = true
# --------------
[[headers]]
for = "/api/*"
[headers.values]
Access-Control-Allow-Origin = "*"
Access-Control-Allow-Methods = "GET"
[[headers]]
for = "/api_hash/*"
[headers.values]
Access-Control-Allow-Origin = "*"
Access-Control-Allow-Methods = "GET"
[[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"
X-Permitted-Cross-Domain-Policies = "none"
Referrer-Policy = "no-referrer"