gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commita4123831a4123831tickets#42: the /connect and /login/callback error pages are app pages: the function routes redirect to /connect/failed/<code> and /login/failed/<code> (components/problem.hl, sentences in lib/problems.hl), htmlPage and its hand-written stylesheet are gone; gate tests/error-pages.mjsmrea4123831/docker-compose.yml

3.7 KB

  1. # tickets.worldapi.org on Byrodin — house pattern of notes.worldapi.org
  2. # (/CONTAINERS/projects/notes.worldapi.org): ./Dockerfile = debian:12-slim + libssl3 + ca-certificates (bin/hybriel is a glibc binary,
  3. # needs GLIBC_2.36 = debian 12), host network, the app on 127.0.0.1:45003, nginx proxies
  4. # it and ends TLS (vhost needs the WebSocket Upgrade headers: the live push rides `/`).
  5. # The whole folder is the bind mount: storage/mpackdb/ and .sessions/ live here and persist.
  6. # Deploy: ./deploy.sh on Loreana (README "Deploy").
  7. # HYBRIEL COMPILES THE APP AT ITS START (no interpreter since hybriel mission 326; hybriel#148): it writes scratch
  8. # files to /tmp (a tmpfs here) and its build cache to HL_CACHE_DIR (hybriel a832f73b, mission 332: run/ = the built
  9. # program, incr/ = the incremental stages, lib/ = the carried runtime library) = /root/.hybriel/cache, inside the named
  10. # volume `hybriel-cache`, so a restart starts warm (~1–3 s) and only a new binary or changed code compiles again (cold ~25 s).
  11. # LOGIN VIA IDENT (ticket #7): IDENT_API_KEY, IDENT_API_SECRET and TICKETS_CREATOR_IDENTITY come
  12. # from `.env` in this folder (the hybriel runtime loads a .env beside project.hl; the real
  13. # environment wins) — never written here. IDENT_URL / TICKETS_PUBLIC_URL default to the public
  14. # https origins. IDENT_EXCHANGE_URL: the server-side code exchange goes straight to ident's
  15. # loopback port (host network) instead of through Cloudflare + nginx.
  16. services:
  17. tickets:
  18. container_name: tickets.worldapi.org
  19. init: true # hybriel#156: the app as PID 1 ignores SIGTERM (restart waited 10 s)
  20. build: .
  21. image: "worldapi-hybriel-runtime:debian12"
  22. working_dir: /home/tickets
  23. network_mode: host
  24. restart: unless-stopped
  25. ulimits:
  26. nofile: { soft: 65536, hard: 65536 } # Hybriel int 6+ opened >1024 files at boot in the tracker (errno 24, 2026-10-22)
  27. environment:
  28. - HL_HOST=127.0.0.1
  29. - TICKETS_PORT=45003
  30. - TICKETS_WATCH=0
  31. - IDENT_EXCHANGE_URL=http://127.0.0.1:45002
  32. - HL_CACHE_DIR=/root/.hybriel/cache
  33. volumes:
  34. - ./:/home/tickets
  35. - hybriel-cache:/root/.hybriel
  36. tmpfs:
  37. - /tmp:exec,mode=1777
  38. command: ./bin/hybriel project.hl
  39. # STANDBY (deploys without a gap): the same image and the same bind mount on port 45013 (= main port + 10). nginx lists it as the
  40. # `backup` server of the tickets upstream, so it only gets requests while 45003 is down. The profile keeps `docker compose up -d` from
  41. # starting it; ../worldapi-conductor/standby-swap.sh starts it for a deploy and stops it again. tickets has no background jobs or timers.
  42. # About 40 s with two processes: the live push list (subscribers of /api/events) is per process, so a page connected to the main container does
  43. # not get the pushes of a change made on the standby (and the other way round) until its connection reopens; the data itself is read from the
  44. # shared storage, and a reload shows everything. Sessions: as in gitoria, a login made in that window may need one more sign-in.
  45. tickets-standby:
  46. init: true # hybriel#156: the app as PID 1 ignores SIGTERM (restart waited 10 s)
  47. build: .
  48. image: "worldapi-hybriel-runtime:debian12"
  49. working_dir: /home/tickets
  50. network_mode: host
  51. ulimits:
  52. nofile: { soft: 65536, hard: 65536 } # Hybriel int 6+ opened >1024 files at boot in the tracker (errno 24, 2026-10-22)
  53. volumes:
  54. - ./:/home/tickets
  55. - hybriel-cache:/root/.hybriel
  56. tmpfs:
  57. - /tmp:exec,mode=1777
  58. command: ./bin/hybriel project.hl
  59. container_name: tickets.worldapi.org-standby
  60. profiles: ["standby"]
  61. restart: "no"
  62. environment:
  63. - HL_HOST=127.0.0.1
  64. - TICKETS_PORT=45013
  65. - TICKETS_WATCH=0
  66. - IDENT_EXCHANGE_URL=http://127.0.0.1:45002
  67. - HL_CACHE_DIR=/root/.hybriel/cache
  68. volumes:
  69. hybriel-cache:

Branches

Latest commits

  • a4123831tickets#42: the /connect and /login/callback error pages are app pages: the function routes redirect to /connect/failed/<code> and /login/failed/<code> (components/problem.hl, sentences in lib/problems.hl), htmlPage and its hand-written stylesheet are gone; gate tests/error-pages.mjsmre
  • cefc7b4atickets: a startup error prints its message before exit 1 (hybriel#247)mre
  • 99bd6570tickets: lib/migrate.hl writes no table of another topic any more: projects.hl rewriteSlug / addProjectNamed / hasMembers, tickets.hl moveToProject / ticketRecords / ticketRecordsOf, events.hl renameStates / eventRecords / eventRecordsOf; the migration calls them (tickets#47)mre
  • b57161e3tickets: the markup names its own rules (Style.pMessage, Style.olTickets, ...) instead of hand-written class strings that copy a stylesheet rule; the shared bodies sit in lib/looks.hl (tickets#38)mre
  • f767b24dtickets: 111 needless let became plain declarations (3 in ticket.hl, ticket_list.hl, comments.hl and 108 never-reassigned, not captured loop-body ones); the 212 really reassigned lets stay (tickets#44)mre
  • 16c0d3b5tickets: the modal window is phone first: the full-screen sheet is the base rule, the centred window sits in the min-width 60rem block (tickets#39)mre
  • 090ee809tickets: every component's styles in its own nested Style {} block; styles.hl keeps only the theme inherit, the accent and the site-wide rules (tickets#36)mre
  • d395763ftickets: ident-access gate ports 8769/8768 (8797 is taken on loreana)mre
  • afb9a403tickets: an ident access key (Authorization: Bearer idt_…) works in the API (ident#27 app side): lib/ident-access.hl copied from components, read keys GET only, ident down 503; gate tests/ident-access-tickets.mjsmre
  • 48c1ba79tickets: md-paste-files gate with the file manager casesmre
  • f04afc43tickets: MdEditor from components 59704ce (a file manager copy still attaches, pipe rows, tickets#49)mre
  • 06599fa0tickets: MdEditor from components b0f1ec2 (a clipboard with text always pastes the text, tickets#49); real Ctrl+V gatemre
  • 2e1b116ftickets: re-vendor Hybriel master acaceaf3 (framework ec8d6c1d): plugins/web patch queue while a page is built, anonymous session cookies refresh; gate waits for the comment editors to draw (W174) and clicks the form editor when it stands still; security gate: main's code runs on its own binary, lazy-session cookie checksmre
  • 361bc0fetickets: re-vendor Hybriel 7a684920 (WIP, not deployed); on Error exits 1 at startup; migrate passes its log by reference; gate checks follow lazy sessions and the 413 refusalmre
  • 8a69999cident#28: /login/callback never signs out the session it finds; a valid code puts the user on the same sessionmre
  • 337e9b21tickets#37: a comment's files are open to everyone who can read the commentmre
  • 1800600ftickets: write the standby service out in full so the boot gate can read the main servicemre
  • 8179d287tickets: standby service on its port plus 10 and a deploy that hands over through it without a gapmre
  • 0398145ctickets: the table grid rule is marked functional for check-thememre
  • 40fddc20tickets takes components e54f83a: tables get thin grey lines from the theme, desktop toolbar stays one row with the Table button, F4 check counts 11 buttonsmre