mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 17:05:32 -04:00
massive cleanup of netlify config -- redirects, headers, etc
This commit is contained in:
26
config.toml
26
config.toml
@@ -87,21 +87,13 @@ disableAliases = true
|
|||||||
section = ["HTML"]
|
section = ["HTML"]
|
||||||
page = ["HTML", "AMP"]
|
page = ["HTML", "AMP"]
|
||||||
|
|
||||||
[mediaTypes]
|
|
||||||
[mediaTypes."application/atom+xml"]
|
|
||||||
suffixes = ["atom"]
|
|
||||||
[mediaTypes."application/manifest+json"]
|
|
||||||
suffixes = ["webmanifest"]
|
|
||||||
[mediaTypes."text/netlify"]
|
|
||||||
delimiter = ""
|
|
||||||
|
|
||||||
[outputFormats]
|
[outputFormats]
|
||||||
[outputFormats.RSS]
|
[outputFormats.RSS]
|
||||||
mediaType = "application/rss"
|
mediaType = "application/rss"
|
||||||
baseName = "feed"
|
baseName = "feed" # /feed.xml
|
||||||
[outputFormats.ATOM]
|
[outputFormats.ATOM]
|
||||||
mediaType = "application/atom+xml"
|
mediaType = "application/atom+xml"
|
||||||
baseName = "feed"
|
baseName = "feed" # /feed.atom
|
||||||
[outputFormats.AMP]
|
[outputFormats.AMP]
|
||||||
mediaType = "text/html"
|
mediaType = "text/html"
|
||||||
baseName = "amp"
|
baseName = "amp"
|
||||||
@@ -129,6 +121,14 @@ disableAliases = true
|
|||||||
isPlainText = true
|
isPlainText = true
|
||||||
notAlternative = true
|
notAlternative = true
|
||||||
|
|
||||||
|
[mediaTypes]
|
||||||
|
[mediaTypes."application/atom+xml"]
|
||||||
|
suffixes = ["atom"]
|
||||||
|
[mediaTypes."application/manifest+json"]
|
||||||
|
suffixes = ["webmanifest"]
|
||||||
|
[mediaTypes."text/netlify"]
|
||||||
|
delimiter = ""
|
||||||
|
|
||||||
[sitemap]
|
[sitemap]
|
||||||
filename = "sitemap.xml"
|
filename = "sitemap.xml"
|
||||||
priority = 0.5
|
priority = 0.5
|
||||||
@@ -158,3 +158,9 @@ disableAliases = true
|
|||||||
lineNumbersInTable = true
|
lineNumbersInTable = true
|
||||||
noClasses = true
|
noClasses = true
|
||||||
tabWidth = 4
|
tabWidth = 4
|
||||||
|
|
||||||
|
[server]
|
||||||
|
[[server.headers]]
|
||||||
|
for = "/**"
|
||||||
|
[server.headers.values]
|
||||||
|
Access-Control-Allow-Origin = "*"
|
||||||
|
@@ -204,7 +204,7 @@ Secured by default, thankfully, but these 1,700+ machines still [have no busines
|
|||||||
|
|
||||||
[Shodan Images](https://images.shodan.io/) is a great supplementary tool to browse screenshots, by the way! [🔎 →](https://images.shodan.io/?query=%22authentication+disabled%22+%21screenshot.label%3Ablank)
|
[Shodan Images](https://images.shodan.io/) is a great supplementary tool to browse screenshots, by the way! [🔎 →](https://images.shodan.io/?query=%22authentication+disabled%22+%21screenshot.label%3Ablank)
|
||||||
|
|
||||||
{{< image src="images/vnc.png" width="500" alt="Example: Unprotected VNC" caption="The first result right now. 😞" />}}
|
{{< image src="images/vnc.png" width="500" alt="Example: Unprotected VNC" >}}The first result right now. 😞{{< /image >}}
|
||||||
|
|
||||||
### Windows RDP [🔎 →](https://www.shodan.io/search?query=%22%5Cx03%5Cx00%5Cx00%5Cx0b%5Cx06%5Cxd0%5Cx00%5Cx00%5Cx124%5Cx00%22)
|
### Windows RDP [🔎 →](https://www.shodan.io/search?query=%22%5Cx03%5Cx00%5Cx00%5Cx0b%5Cx06%5Cxd0%5Cx00%5Cx00%5Cx124%5Cx00%22)
|
||||||
|
|
||||||
|
155
netlify.toml
155
netlify.toml
@@ -36,7 +36,6 @@
|
|||||||
publish = "public"
|
publish = "public"
|
||||||
autoLaunch = false
|
autoLaunch = false
|
||||||
|
|
||||||
|
|
||||||
# The most important headers and redirects are specified in the _headers and
|
# The most important headers and redirects are specified in the _headers and
|
||||||
# _redirects files generated by Hugo. These are additional custom rules.
|
# _redirects files generated by Hugo. These are additional custom rules.
|
||||||
|
|
||||||
@@ -47,7 +46,7 @@
|
|||||||
# 🐄
|
# 🐄
|
||||||
X-Got-Milk = "2%"
|
X-Got-Milk = "2%"
|
||||||
|
|
||||||
# PGP file: open in browser, download correctly
|
# PGP key: open in browser, download correctly
|
||||||
[[headers]]
|
[[headers]]
|
||||||
for = "/jarvis.asc"
|
for = "/jarvis.asc"
|
||||||
[headers.values]
|
[headers.values]
|
||||||
@@ -79,7 +78,47 @@
|
|||||||
status = 301
|
status = 301
|
||||||
force = true
|
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]]
|
[[redirects]]
|
||||||
from = "/sa/send.gif*"
|
from = "/sa/send.gif*"
|
||||||
to = "https://queue.simpleanalyticscdn.com/simple.gif:splat"
|
to = "https://queue.simpleanalyticscdn.com/simple.gif:splat"
|
||||||
@@ -97,35 +136,9 @@
|
|||||||
to = "https://api.simpleanalytics.io/post"
|
to = "https://api.simpleanalytics.io/post"
|
||||||
status = 200
|
status = 200
|
||||||
|
|
||||||
# Support ancient RSS subscriptions and links from WordPress era:
|
# Mirror these directories from elsewhere to mimic GitHub Pages behavior and
|
||||||
[[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
|
|
||||||
# keep this main repository squeaky clean.
|
# keep this main repository squeaky clean.
|
||||||
# https://github.com/jakejarvis/random-sites
|
# https://github.com/jakejarvis/random-sites (private)
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/y2k/*"
|
from = "/y2k/*"
|
||||||
to = "https://modest-jackson-d5516b.netlify.com/y2k/:splat"
|
to = "https://modest-jackson-d5516b.netlify.com/y2k/:splat"
|
||||||
@@ -134,6 +147,10 @@
|
|||||||
from = "/hugo-node/*"
|
from = "/hugo-node/*"
|
||||||
to = "https://modest-jackson-d5516b.netlify.com/hugo-node/:splat"
|
to = "https://modest-jackson-d5516b.netlify.com/hugo-node/:splat"
|
||||||
status = 200
|
status = 200
|
||||||
|
[[redirects]]
|
||||||
|
from = "/cli/*"
|
||||||
|
to = "https://modest-jackson-d5516b.netlify.com/cli/:splat"
|
||||||
|
status = 200
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/ios-trackers/*"
|
from = "/ios-trackers/*"
|
||||||
to = "https://modest-jackson-d5516b.netlify.com/ios-trackers/:splat"
|
to = "https://modest-jackson-d5516b.netlify.com/ios-trackers/:splat"
|
||||||
@@ -143,86 +160,18 @@
|
|||||||
to = "https://modest-jackson-d5516b.netlify.com/scrabble/:splat"
|
to = "https://modest-jackson-d5516b.netlify.com/scrabble/:splat"
|
||||||
status = 200
|
status = 200
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/comp20/*"
|
from = "/awesome/*"
|
||||||
to = "https://modest-jackson-d5516b.netlify.com/comp20/:splat"
|
to = "https://modest-jackson-d5516b.netlify.com/awesome/:splat"
|
||||||
status = 200
|
status = 200
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/candies/*"
|
from = "/candies/*"
|
||||||
to = "https://modest-jackson-d5516b.netlify.com/candies/:splat"
|
to = "https://modest-jackson-d5516b.netlify.com/candies/:splat"
|
||||||
status = 200
|
status = 200
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/awesome/*"
|
from = "/comp20/*"
|
||||||
to = "https://modest-jackson-d5516b.netlify.com/awesome/:splat"
|
to = "https://modest-jackson-d5516b.netlify.com/comp20/:splat"
|
||||||
status = 200
|
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 ( ͡° ͜ʖ ͡°)
|
# H A C K E R M A N ( ͡° ͜ʖ ͡°)
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "*/wp-admin/*"
|
from = "*/wp-admin/*"
|
||||||
|
Reference in New Issue
Block a user