chore(installer): only serve installer in / and /install.sh

This avoids false positive detections on other bruteforced paths,
such as .zsh_history or others, which eventually result in
automated false vulnerability submissions.
master
Marc Cornellà 2 years ago
parent 067558da92
commit 4ada154190
No known key found for this signature in database
GPG Key ID: 314585E776A9C1B
  1. 4
      .github/workflows/installer/vercel.json

@ -1,7 +1,7 @@
{ {
"headers": [ "headers": [
{ {
"source": "/((?!favicon.ico).*)", "source": "/(|install.sh)",
"headers": [ "headers": [
{ {
"key": "Content-Type", "key": "Content-Type",
@ -16,7 +16,7 @@
], ],
"rewrites": [ "rewrites": [
{ {
"source": "/((?!favicon.ico|install.sh).*)", "source": "/",
"destination": "/install.sh" "destination": "/install.sh"
} }
] ]

Loading…
Cancel
Save