gitoria

notes

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitd7366702d7366702Check session cookie flags after login and assert anonymous GET stays cookielessmred7366702/docker-compose.yml

3.3 KB

  1. # notes.worldapi.org on Byrodin — same pattern as gitoria.worldapi.org: ./Dockerfile = debian:12-slim +
  2. # libssl3 + ca-certificates, host network, the app on 127.0.0.1:45007, nginx proxies it and ends TLS
  3. # (the vhost needs the WebSocket Upgrade headers: the live push rides `/`).
  4. # The container REPLACES the old demo-notes (port 45000) at the same address: at the first deploy the architect
  5. # backs the demo up, stops it and points the vhost to 45007.
  6. # HYBRIEL COMPILES THE APP AT ITS START (hybriel#148, a832f73b): scratch files go to /tmp (a tmpfs), the build cache to
  7. # HL_CACHE_DIR = /root/.hybriel/cache in the named volume `hybriel-cache`, so a restart starts warm (~1–3 s); a new
  8. # binary or changed code compiles again (cold ~25 s).
  9. # The whole folder is the bind mount: storage/mpackdb/ and .sessions/ live here and persist.
  10. # LOGIN VIA IDENT: IDENT_API_KEY and IDENT_API_SECRET come from `.env` in this folder (never written here).
  11. # The app is registered in ident with ONE origin, https://notes.worldapi.org.
  12. # IDENT_EXCHANGE_URL: the server-side code exchange goes straight to ident's loopback port.
  13. services:
  14. notes:
  15. container_name: notes.worldapi.org
  16. init: true # hybriel#156: the app as PID 1 ignores SIGTERM (restart waited 10 s)
  17. build: .
  18. image: "worldapi-hybriel-runtime:debian12"
  19. working_dir: /home/notes
  20. network_mode: host
  21. restart: unless-stopped
  22. ulimits:
  23. nofile: { soft: 65536, hard: 65536 } # Hybriel int 6+ opened >1024 files at boot in the tracker (errno 24, 2026-10-22)
  24. environment:
  25. - HL_HOST=127.0.0.1
  26. - NOTES_PORT=45007
  27. - NOTES_WATCH=0
  28. - IDENT_EXCHANGE_URL=http://127.0.0.1:45002
  29. - HL_CACHE_DIR=/root/.hybriel/cache
  30. volumes:
  31. - ./:/home/notes
  32. - hybriel-cache:/root/.hybriel
  33. tmpfs:
  34. - /tmp:exec,mode=1777
  35. command: ./bin/hybriel project.hl
  36. # STANDBY (deploys without a gap): the same image and the same bind mount on port 45017 (= main port + 10). nginx lists it as the
  37. # `backup` server of the notes upstream, so it only gets requests while 45007 is down. The profile keeps `docker compose up -d` from
  38. # starting it; ../worldapi-conductor/standby-swap.sh starts it for a deploy and stops it again. notes has no background jobs or timers.
  39. # About 40 s with two processes: only the sign-in attempt counter (lib/ratelimit.hl) is in memory, per process, which does not matter. Notes are read
  40. # from the shared storage; the check path is the page itself, which can only answer once the tables are loaded (they are loaded at start).
  41. notes-standby:
  42. init: true # hybriel#156: the app as PID 1 ignores SIGTERM (restart waited 10 s)
  43. build: .
  44. image: "worldapi-hybriel-runtime:debian12"
  45. working_dir: /home/notes
  46. network_mode: host
  47. ulimits:
  48. nofile: { soft: 65536, hard: 65536 } # Hybriel int 6+ opened >1024 files at boot in the tracker (errno 24, 2026-10-22)
  49. volumes:
  50. - ./:/home/notes
  51. - hybriel-cache:/root/.hybriel
  52. tmpfs:
  53. - /tmp:exec,mode=1777
  54. command: ./bin/hybriel project.hl
  55. container_name: notes.worldapi.org-standby
  56. profiles: ["standby"]
  57. restart: "no"
  58. environment:
  59. - HL_HOST=127.0.0.1
  60. - NOTES_PORT=45017
  61. - NOTES_WATCH=0
  62. - IDENT_EXCHANGE_URL=http://127.0.0.1:45002
  63. - HL_CACHE_DIR=/root/.hybriel/cache
  64. volumes:
  65. hybriel-cache:

Branches

Latest commits

  • d7366702Check session cookie flags after login and assert anonymous GET stays cookielessmre
  • 16bc8fd8Re-vendor Hybriel day38b with the mpackdb store-open race fixmre
  • d860dc2dnotes#12: the markup names its own rules instead of hand-written class strings: the selected row is `aria-current="page"` (the list-first theme rule styles it, no class), the delete question is `Style.pAsk` and follows its own `open` attribute (bound to `asking`), the error line is `Style.pMessage` (body once in lib/looks.hl, rule in notes.hl, main.hl and loginfailed.hl). The CSS declarations are the same, only selectors changed (.ask -> p.ask, .ask.open -> p.ask[open], .message -> p.message); the pages look the same (AE 0 at 4 sizes). main.hl's selectorClass in/out stays (login.js reads it).mre
  • 2e7f8664notes#13: the list and back links pass the note key from the loop (emit pick(e, r.key)) instead of writing data-note into the View and reading it back with getAttribute; the two window.history.replaceState calls and the identcode e.target.value read stay (hl:web has no replace-navigation, a bound hidden input is not adopted on a script's change event), see NO13 reportmre
  • 4dc98282notes#15: a deleted note made in this tab leaves the list at once (the delete now removes this tab's edit under every key the row has: local id, server id); gate: browser.mjs notes#15 section, red on the old codemre
  • e4e7402fnotes#11: plain declarations instead of let for variables never reassigned (components/notes.hl 3, lib/jsoncheck.hl 5, lib/util.hl 2, tools/migrate-short-ids.hl 8)mre
  • 27b6a09enotes#8: Style blocks in the nested form (note-list, note-editor, .ask with their children nested, :empty as a nested pseudo-class); the same CSS rules, the pages look the samemre
  • 71a9538bnotes: B27W report, log linemre
  • 78ba0073notes: an ident access key (Authorization: Bearer idt_…) reads and writes its identity's notes through /api/me and /api/notes; gate tests/ident-access-notes.mjs (ident#27)mre
  • 3de46dacnotes: the sign-in callback keeps the session it finds and signs it in (same cookie, nothing signed out; ident#28); security gate 73+5 failing → 78 passedmre
  • 5909d458notes: MdEditor from components 59704ce (text on the clipboard always pastes, a file manager copy still attaches; pipe rows without a delimiter row; tickets#49, notes#5)mre
  • 98bd6a98N5b: pipe rows without a delimiter row are a table (MdEditor ad4e929, plain copy); gate tests/dashboard-table.mjs; reportmre
  • dbf93319N5 report: components gate rerun 613 passed, 0 failedmre
  • 3a8bc0d2N5: empty Table-button table is written as a real pipe table (MdEditor 4bd1112, plain copy); gate tests/table-button.mjs; reportmre
  • c16bd443N5: step 1 report (tables pass locally; his DASHBOARD note has no delimiter row)mre
  • 6091320anotes: MdEditor 7437e32 (surface drawn at once when the page is claimed); gate measures claim-to-text on 5 note loads at 1280 and 390mre
  • 0aa9277enotes: move each component's styles into its own Style block (shell and header selector in main.hl, list, editor frame and delete question in notes.hl); styles.hl keeps the theme inherit, the accent and the message colour; .gitignore ignores a bin symlink too; tests/shots.mjs for the pixel comparemre
  • 9ba01de3notes: write the standby service out in full so the boot gate can read the main servicemre
  • 98cab40anotes: standby service on its port plus 10 and a deploy that hands over through it without a gapmre
  • 1fadb473notes gate: the editor table now has 1 px cell lines from the notes thememre