1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-26 08:45:26 -04:00
jarv.is/vercel.json
2021-10-27 10:05:43 -04:00

133 lines
5.1 KiB
JSON
Executable File

{
"name": "jarvis",
"alias": ["jarv.is", "www.jarv.is"],
"public": false,
"trailingSlash": true,
"cleanUrls": false,
"rewrites": [
{ "source": "/favicon.ico", "destination": "/assets/images/favicon.ico" },
{ "source": "/favicon.png", "destination": "/assets/images/favicon-64.png" },
{ "source": "/apple-touch-icon.png", "destination": "/assets/images/apple-touch-icon.png" },
{
"source": "/apple-touch-icon-precomposed.png",
"destination": "/assets/images/apple-touch-icon.png"
},
{
"source": "/api/csp_wizard/",
"destination": "https://jarvis.report-uri.com/r/d/csp/enforce"
},
{ "source": "/api/report/", "destination": "https://jarvis.report-uri.com/a/d/g" },
{ "source": "/api/mention/", "destination": "https://webmention.io/jarv.is/webmention" },
{ "source": "/api/ping/", "destination": "https://webmention.io/jarv.is/xmlrpc" }
],
"redirects": [
{ "source": "/notes/:slug/amp.html", "destination": "/notes/:slug/", "statusCode": 301 },
{ "source": "/resume/", "destination": "/resume.pdf" },
{ "source": "/scrabble/(.*)", "destination": "https://jakejarvis.github.io/scrabble/$1" },
{ "source": "/jarvis.asc", "destination": "/pubkey.asc", "permanent": true },
{ "source": "/index.xml", "destination": "/feed.xml", "permanent": true },
{ "source": "/feed/", "destination": "/feed.xml", "permanent": true },
{ "source": "/rss/", "destination": "/feed.xml", "permanent": true },
{ "source": "/blog/(.*)", "destination": "/notes/", "permanent": true },
{ "source": "/archives/(.*)", "destination": "/notes/", "permanent": true },
{
"source": "/2013/11/21/no-homo-still-raps-motto/",
"destination": "/notes/no-homo-still-raps-motto/",
"permanent": true
},
{
"source": "/2016/02/28/millenial-with-hillary-clinton/",
"destination": "/notes/millenial-with-hillary-clinton/",
"permanent": true
},
{
"source": "/2018/12/04/how-to-shrink-linux-virtual-disk-vmware/",
"destination": "/notes/how-to-shrink-linux-virtual-disk-vmware/",
"permanent": true
},
{
"source": "/2018/12/07/shrinking-a-linux-virtual-disk-with-vmware/",
"destination": "/notes/how-to-shrink-linux-virtual-disk-vmware/",
"permanent": true
},
{
"source": "/2018/12/10/cool-bash-tricks-for-your-terminal-dotfiles/",
"destination": "/notes/cool-bash-tricks-for-your-terminal-dotfiles/",
"permanent": true
}
],
"headers": [
{
"source": "/assets/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "/pubkey.asc",
"headers": [
{
"key": "Cache-Control",
"value": "private, no-cache, no-store, must-revalidate"
},
{
"key": "Content-Type",
"value": "text/plain; charset=utf-8"
}
]
},
{
"source": "/(.*)",
"headers": [
{
"key": "Onion-Location",
"value": "http://jarvis2i2vp4j4tbxjogsnqdemnte5xhzyi7hziiyzxwge3hzmh57zad.onion/$1"
},
{
"key": "Content-Security-Policy",
"value": "default-src 'self'; base-uri 'none'; connect-src 'self' api.github.com hcaptcha.com *.hcaptcha.com platform.twitter.com; font-src 'self'; form-action 'self'; frame-ancestors 'self'; frame-src 'self' jakejarvis.github.io buttons.github.io codepen.io hcaptcha.com *.hcaptcha.com platform.twitter.com www.youtube-nocookie.com; img-src 'self' data: https:; manifest-src 'self'; media-src 'self' data: https:; object-src 'none'; prefetch-src 'self'; script-src 'self' buttons.github.io gist.github.com hcaptcha.com *.hcaptcha.com syndication.twitter.com platform.twitter.com; style-src 'self' 'unsafe-inline' github.githubassets.com; worker-src 'self'; block-all-mixed-content; report-uri https://jarv.is/api/csp_wizard/; report-to default"
},
{
"key": "Report-To",
"value": "{\"group\":\"default\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://jarv.is/api/report/\"}],\"include_subdomains\":false}"
},
{
"key": "NEL",
"value": "{\"report_to\":\"default\",\"max_age\":604800}"
},
{
"key": "Feature-Policy",
"value": "accelerometer 'none'; camera 'none'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; payment 'none'; usb 'none'"
},
{
"key": "Permissions-Policy",
"value": "accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=(), interest-cohort=()"
},
{
"key": "Referrer-Policy",
"value": "no-referrer-when-downgrade"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "X-XSS-Protection",
"value": "1; mode=block"
},
{
"key": "X-Got-Milk",
"value": "2%"
}
]
}
]
}