Skip to content
Snippets Groups Projects
Commit 11b08d7c authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

exclude healthchecks from localization redirect

parent 545f9262
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ class LocalizationRedirect ...@@ -20,7 +20,7 @@ class LocalizationRedirect
$host = $request->getHttpHost(); $host = $request->getHttpHost();
// We only redirect to the TLDs in the production version and exclude our onion domain // We only redirect to the TLDs in the production version and exclude our onion domain
if (\App::environment() !== "production" || $host === "metagerv65pwclop2rsfzg4jwowpavpwd6grhhlvdgsswvo6ii4akgyd.onion" || $request->is('metrics')) { if (\App::environment() !== "production" || $host === "metagerv65pwclop2rsfzg4jwowpavpwd6grhhlvdgsswvo6ii4akgyd.onion" || $request->is(['metrics', 'health-check/*'])) {
return $next($request); return $next($request);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment