Aura Web: Trailing slash in URLs route requests to the Dashboard
I've noticed an issue with the current Docker Compose & NGINX implementation in regards of URL routing.
Actual behavior
When accessing the Tank Health URL like it is configured with a trailing slash http://aura.local/tank/healthz/
the request returns actual Dashboard content:
Response from http://aura.local/tank/healthz/:
b'<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="manifest" href="/site.webmanifest"><meta name="msapplication-TileColor" content="#da532c"><meta name="theme-color" content="#ffffff"><title>AURA Dashboard</title><script defer="defer" type="module" src="/js/chunk-vendors.19deeadf.js"></script><script defer="defer" type="module" src="/js/app.165c855d.js"></script><link href="/css/chunk-vendors.6b26c4f3.css" rel="stylesheet"><link href="/css/app.40b3ba2f.css" rel="stylesheet"><script defer="defer" src="/js/chunk-vendors-legacy.c67346f0.js" nomodule></script><script defer="defer" src="/js/app-legacy.629d49e5.js" nomodule></script></head><body><noscript><strong>We\'re sorry but dboard doesn\'t work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>'
This means all traffic is routed to the Dashboard by default.
Workaround
When omitting the trailing slash the response of http://aura.local/tank/healthz
is correct:
Response from http://aura.local/tank/healthz:
b'{"auth":"OK","store":"OK","importer":"OK"}'
Edited by David Trattnig