mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-18 22:15:32 -04:00
massive cleanup of netlify config -- redirects, headers, etc
This commit is contained in:
155
netlify.toml
155
netlify.toml
@@ -36,7 +36,6 @@
|
||||
publish = "public"
|
||||
autoLaunch = false
|
||||
|
||||
|
||||
# The most important headers and redirects are specified in the _headers and
|
||||
# _redirects files generated by Hugo. These are additional custom rules.
|
||||
|
||||
@@ -47,7 +46,7 @@
|
||||
# 🐄
|
||||
X-Got-Milk = "2%"
|
||||
|
||||
# PGP file: open in browser, download correctly
|
||||
# PGP key: open in browser, download correctly
|
||||
[[headers]]
|
||||
for = "/jarvis.asc"
|
||||
[headers.values]
|
||||
@@ -79,7 +78,47 @@
|
||||
status = 301
|
||||
force = true
|
||||
|
||||
# Proxy data to Simple Analytics endpoint
|
||||
# Support ancient RSS subscriptions and links from WordPress era:
|
||||
[[redirects]]
|
||||
from = "/feed"
|
||||
to = "/feed.xml"
|
||||
status = 301
|
||||
[[redirects]]
|
||||
from = "/rss"
|
||||
to = "/feed.xml"
|
||||
status = 301
|
||||
[[redirects]]
|
||||
from = "/index.php*"
|
||||
to = "/"
|
||||
status = 301
|
||||
[[redirects]]
|
||||
from = "/blog/*"
|
||||
to = "/notes/"
|
||||
status = 301
|
||||
[[redirects]]
|
||||
from = "/archives/*"
|
||||
to = "/notes/"
|
||||
status = 301
|
||||
|
||||
# More miscellaneous mirrors/redirects:
|
||||
[[redirects]]
|
||||
from = "/resume"
|
||||
to = "/resume.pdf"
|
||||
status = 302
|
||||
[[redirects]]
|
||||
from = "/favicon.ico"
|
||||
to = "/img/favicon.ico"
|
||||
status = 200
|
||||
[[redirects]]
|
||||
from = "/apple-touch-icon.png"
|
||||
to = "/img/apple-touch-icon.png"
|
||||
status = 200
|
||||
[[redirects]]
|
||||
from = "/keybase.txt"
|
||||
to = "/.well-known/keybase.txt"
|
||||
status = 301
|
||||
|
||||
# Proxy data to Simple Analytics endpoint:
|
||||
[[redirects]]
|
||||
from = "/sa/send.gif*"
|
||||
to = "https://queue.simpleanalyticscdn.com/simple.gif:splat"
|
||||
@@ -97,35 +136,9 @@
|
||||
to = "https://api.simpleanalytics.io/post"
|
||||
status = 200
|
||||
|
||||
# Support ancient RSS subscriptions and links from WordPress era:
|
||||
[[redirects]]
|
||||
from = "/feed"
|
||||
to = "/feed.xml"
|
||||
status = 301
|
||||
[[redirects]]
|
||||
from = "/rss"
|
||||
to = "/feed.xml"
|
||||
status = 301
|
||||
[[redirects]]
|
||||
from = "/index.xml"
|
||||
to = "/feed.xml"
|
||||
status = 301
|
||||
[[redirects]]
|
||||
from = "/index.php*"
|
||||
to = "/"
|
||||
status = 301
|
||||
[[redirects]]
|
||||
from = "/blog/*"
|
||||
to = "/notes/"
|
||||
status = 301
|
||||
[[redirects]]
|
||||
from = "/archives/*"
|
||||
to = "/notes/"
|
||||
status = 301
|
||||
|
||||
# Proxy these directories from elsewhere to mimic GitHub Pages behavior and
|
||||
# Mirror these directories from elsewhere to mimic GitHub Pages behavior and
|
||||
# keep this main repository squeaky clean.
|
||||
# https://github.com/jakejarvis/random-sites
|
||||
# https://github.com/jakejarvis/random-sites (private)
|
||||
[[redirects]]
|
||||
from = "/y2k/*"
|
||||
to = "https://modest-jackson-d5516b.netlify.com/y2k/:splat"
|
||||
@@ -134,6 +147,10 @@
|
||||
from = "/hugo-node/*"
|
||||
to = "https://modest-jackson-d5516b.netlify.com/hugo-node/:splat"
|
||||
status = 200
|
||||
[[redirects]]
|
||||
from = "/cli/*"
|
||||
to = "https://modest-jackson-d5516b.netlify.com/cli/:splat"
|
||||
status = 200
|
||||
[[redirects]]
|
||||
from = "/ios-trackers/*"
|
||||
to = "https://modest-jackson-d5516b.netlify.com/ios-trackers/:splat"
|
||||
@@ -143,86 +160,18 @@
|
||||
to = "https://modest-jackson-d5516b.netlify.com/scrabble/:splat"
|
||||
status = 200
|
||||
[[redirects]]
|
||||
from = "/comp20/*"
|
||||
to = "https://modest-jackson-d5516b.netlify.com/comp20/:splat"
|
||||
from = "/awesome/*"
|
||||
to = "https://modest-jackson-d5516b.netlify.com/awesome/:splat"
|
||||
status = 200
|
||||
[[redirects]]
|
||||
from = "/candies/*"
|
||||
to = "https://modest-jackson-d5516b.netlify.com/candies/:splat"
|
||||
status = 200
|
||||
[[redirects]]
|
||||
from = "/awesome/*"
|
||||
to = "https://modest-jackson-d5516b.netlify.com/awesome/:splat"
|
||||
from = "/comp20/*"
|
||||
to = "https://modest-jackson-d5516b.netlify.com/comp20/:splat"
|
||||
status = 200
|
||||
|
||||
# Reorganized static assets; this can probably be temporary:
|
||||
[[redirects]]
|
||||
from = "/fonts/inter-*"
|
||||
to = "/vendor/inter/inter-:splat"
|
||||
status = 301
|
||||
[[redirects]]
|
||||
from = "/fonts/hack-*"
|
||||
to = "/vendor/hack/hack-:splat"
|
||||
status = 301
|
||||
[[redirects]]
|
||||
from = "/twemoji/*"
|
||||
to = "/vendor/emoji/:splat"
|
||||
status = 301
|
||||
[[redirects]]
|
||||
from = "/vendor/emoji/twemoji.min.js"
|
||||
to = "/vendor/emoji/emoji.min.js"
|
||||
status = 301
|
||||
|
||||
# More miscellaneous mirrors/redirects:
|
||||
[[redirects]]
|
||||
from = "/resume"
|
||||
to = "/resume.pdf"
|
||||
status = 302
|
||||
[[redirects]]
|
||||
from = "/license.txt"
|
||||
to = "/license/"
|
||||
status = 301
|
||||
[[redirects]]
|
||||
from = "/privacy.html"
|
||||
to = "/privacy/"
|
||||
status = 301
|
||||
[[redirects]]
|
||||
from = "/favicon.ico"
|
||||
to = "/img/favicon.ico"
|
||||
status = 200
|
||||
[[redirects]]
|
||||
from = "/favicon-*"
|
||||
to = "/img/favicon-:splat"
|
||||
status = 301
|
||||
[[redirects]]
|
||||
from = "/apple-touch-icon*"
|
||||
to = "/img/apple-touch-icon.png"
|
||||
status = 301
|
||||
[[redirects]]
|
||||
from = "/safari-pinned-tab.svg"
|
||||
to = "/img/safari-pinned-tab.svg"
|
||||
status = 301
|
||||
[[redirects]]
|
||||
from = "/android-chrome-*"
|
||||
to = "/img/android-chrome-:splat"
|
||||
status = 301
|
||||
[[redirects]]
|
||||
from = "/me_lg.jpg"
|
||||
to = "/img/me_large.jpg"
|
||||
status = 301
|
||||
[[redirects]]
|
||||
from = "/me_large.jpg"
|
||||
to = "/img/me_large.jpg"
|
||||
status = 301
|
||||
[[redirects]]
|
||||
from = "/me.jpg"
|
||||
to = "/img/me.jpg"
|
||||
status = 301
|
||||
[[redirects]]
|
||||
from = "/logo.png"
|
||||
to = "/img/logo.png"
|
||||
status = 301
|
||||
|
||||
# H A C K E R M A N ( ͡° ͜ʖ ͡°)
|
||||
[[redirects]]
|
||||
from = "*/wp-admin/*"
|
||||
|
Reference in New Issue
Block a user