Use organization-neutral names in code and browser keys

- The timeline's ngu-tl classes and keyframes are site-tl; nguLogo is
  siteLogo; the event card's ngu grid area is org; window.__NGU_SITE__
  is window.__SITE__; QR downloads are qr-<page>.png
- Browser keys (theme, closed banner and privacy notice, chunk reload)
  start site-; the page's first script moves any old ngu- values over
  once, so nobody loses their theme or sees a closed notice again
- Session and Google sign-in cookies are site_session and site_oauth
  (__Host- over https); everyone signs in again once

Record ids, server paths, the service and the database file keep
their names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-29 09:23:29 -05:00
parent 92e7938b64
commit 2b009beac1
23 changed files with 191 additions and 181 deletions

View file

@ -45,10 +45,10 @@ Both lines are already in every proxied block in `nginx-dev` and in
## Sign-in
- The session cookie is `__Host-ngu_session`: the browser only
- The session cookie is `__Host-site_session`: the browser only
accepts it Secure, on path `/`, with no Domain, so another
subdomain can't set or overwrite it. With `COOKIE_SECURE=false`
(plain-http local work) it's `ngu_session`, since the prefix needs
(plain-http local work) it's `site_session`, since the prefix needs
Secure.
- Logins are limited per IP where `/api/auth/login` is mounted (10
per 15 minutes, `server/src/index.js`) and per email in
@ -64,8 +64,8 @@ Both lines are already in every proxied block in `nginx-dev` and in
entry becomes the proxy's address and every visitor shares one
rate-limit bucket: set nginx's `real_ip_header` and
`set_real_ip_from` for the proxy first.
- The Google sign-in state cookie is `__Host-ngu_oauth` (plain
`ngu_oauth` over local http), and the page it returns to is checked
- The Google sign-in state cookie is `__Host-site_oauth` (plain
`site_oauth` over local http), and the page it returns to is checked
again when the browser comes back.
## From nginx: HSTS