mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-22 21:41:57 +00:00
More attempts to solve proxy path conflicts
This commit is contained in:
@@ -10,10 +10,8 @@
|
|||||||
health_status 200
|
health_status 200
|
||||||
}
|
}
|
||||||
|
|
||||||
handle /repo/* {
|
route /repo/* {
|
||||||
root * /var/www/html
|
reverse_proxy localhost:1212
|
||||||
try_files * /repo/placeholder.html
|
|
||||||
file_server
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ export const handle = async ({ event, resolve }) => {
|
|||||||
|
|
||||||
if (proxyPaths.some(path => event.url.pathname.startsWith(path))) {
|
if (proxyPaths.some(path => event.url.pathname.startsWith(path))) {
|
||||||
// Return empty response, letting proxy handle it
|
// Return empty response, letting proxy handle it
|
||||||
return new Response(null, { status: 404 });
|
return new Response(null, { status: 444 });
|
||||||
}
|
}
|
||||||
|
|
||||||
// Let SvelteKit handle other paths
|
// Let SvelteKit handle other paths
|
||||||
|
|||||||
Reference in New Issue
Block a user