2.9 KiB
2.9 KiB
S006a — website under /dezio/ (tests)
Local checks
Run: DASHBOARD_URL=http://127.0.0.1:8099/dezio DISCORD_BOT_TOKEN=dev-placeholder target/debug/dezio --web-dev, cookie dezio_session=devtoken.
/dezio/shows the site with fonts and images;/dezio/terms,/dezio/privacyload and their Home link goes to/dezio/./dezio/assets/site.css,/dezio/images/dezio.pngreturn 200.- Site: the Dashboard button appears (fetch of
/dezio/api/meworks). /dezio/dashboardloads styled; its scripts load from/dezio/dashboard/static/; settings load and save (/dezio/api/user).- Dashboard URL bar after navigating stays
/dezio/dashboard#...; Sign out returns to/dezio/dashboard. - Signed out (no cookie): "Sign in with Discord" links to
/dezio/login;/dezio/loginredirects to Discord withredirect_uri=http://127.0.0.1:8099/dezio/callback. - Set-Cookie headers from login have
Path=/dezio. /dezio/activityredirects to/dezio/activity/; the page loads,/dezio/activity/api/configworks, the 401 from web-session haslogin=/dezio/login?next=/activity/.- A hosted link from
hosted::storeishttp://127.0.0.1:8099/dezio/f/<token>/<name>and downloads. - Without a path (
DASHBOARD_URL=http://127.0.0.1:8099) everything still works at/. cargo test base_pathpasses.
Deploy commands for S011 (do not run before)
- Back up:
ssh [email protected] cp /root/Dezio/.env /root/Dezio/.env.bak-<date>. - Landing:
scp deploy/landing/index.html [email protected]:/srv/landing/index.html(mkdir/srv/landingfirst). tailscale serve --bg --set-path / /srv/landingtailscale serve --bg --set-path /dezio http://127.0.0.1:8080(keep Funnel on; keep the/gitmapping).- In
/root/Dezio/.env:DASHBOARD_URL=https://astar76.com/dezio, then restartdezio-bot. - Check
https://astar76.com/,/dezio/,/git/. The router accepts the prefix stripped or not.
Owner checklist 🧑
- Developer Portal → OAuth2 → Redirects: add
https://astar76.com/dezio/callback. - Activities → URL Mappings:
/→astar76.com/dezio/activity. - top.gg website field:
https://astar76.com/dezio/.
Doubts
- Whether tailscale strips
/dezio(both handled, not verified). web/dashboard/index.htmlhas__BASE__placeholders, so opening it as a plain file shows broken links.- Root-absolute paths left in web/: none outside
__BASE__placeholders (grep(href|src|action)="/[a-z]in web/site finds none).
Results (server, 2026-12-01)
- Server steps applied.
/= landing 200,/dezio/200,/dezio/dashboard200,/dezio/terms200,/git/200, Funnel on. dezio-bot active, journal clean, log shows Dashboard on .../dezio. - Note:
tailscale serve --set-pathturns Funnel off;tailscale funnel --bg --set-path / /srv/landingrestored it (brief outage, about 5 min). - Not checked: OAuth login and Activity (need owner portal changes).