feat: base-path support (ROOT_PATH) for serving under /portal
build-image / test (push) Successful in 33s
build-image / build (push) Successful in 29s

Links, form actions, and redirects are prefixed with the gateway path prefix so
the portal can be served at intervalsicu.farhoodlabs.com/portal (gateway strips
/portal; FastAPI root_path generates correct URLs). Connector URL is configurable.
This commit is contained in:
2026-07-04 21:25:12 -04:00
parent 2e09009e11
commit 3908251f6e
8 changed files with 33 additions and 20 deletions
+3 -3
View File
@@ -34,9 +34,9 @@
<strong>Intervals.icu&nbsp;MCP</strong>
{% if user %}
<nav>
<a href="/account">My account</a>
{% if user.is_admin %}<a href="/admin">Admin</a>{% endif %}
<a href="/logout">Sign out</a>
<a href="{{ base }}/account">My account</a>
{% if user.is_admin %}<a href="{{ base }}/admin">Admin</a>{% endif %}
<a href="{{ base }}/logout">Sign out</a>
</nav>
{% endif %}
</header>