gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit90b4f72890b4f728gitoria#25: restore the homepage cache and the parsed-blocks cache (they store data under immutable keys, no HTML); the page key, the framework readme key and the textHash key stay removedmre90b4f728/docker-compose.yml

4.7 KB

  1. # gitoria.worldapi.org on Byrodin — same pattern as tickets.worldapi.org: ./Dockerfile = debian:12-slim +
  2. # libssl3 + ca-certificates, host network, the app on 127.0.0.1:45004, nginx proxies it and ends TLS
  3. # (the vhost needs the WebSocket Upgrade headers: the live push rides `/`).
  4. # THE VHOST IS A WILDCARD: `server_name gitoria.worldapi.org *.gitoria.worldapi.org;` — every repo
  5. # is <slug>.gitoria.worldapi.org and reaches this one app; the app reads the host in the browser
  6. # (README "How a repo gets its address"). Wildcard DNS + a wildcard certificate are the architect's.
  7. # HYBRIEL COMPILES THE APP AT ITS START (static build 0f396652): scratch files go to /tmp (a tmpfs here), the build cache to
  8. # HL_CACHE_DIR = /root/.hybriel/cache inside the named volume `hybriel-cache`, so a restart starts warm and only a new
  9. # binary or changed code compiles again (cold ~18 s).
  10. # The whole folder is the bind mount: storage/mpackdb/ and .sessions/ live here and persist.
  11. # LOGIN VIA IDENT: IDENT_API_KEY and IDENT_API_SECRET come from `.env` in this folder (never written
  12. # here). The app is registered in ident with ONE origin, https://gitoria.worldapi.org (repo
  13. # addresses log in through it and come back: README "Login").
  14. # IDENT_EXCHANGE_URL: the server-side code exchange goes straight to ident's loopback port.
  15. services:
  16. gitoria:
  17. container_name: gitoria.worldapi.org
  18. init: true # hybriel#156: the app as PID 1 ignores SIGTERM (restart waited 10 s)
  19. build: .
  20. image: "worldapi-hybriel-runtime:debian12"
  21. working_dir: /home/gitoria
  22. network_mode: host
  23. restart: unless-stopped
  24. ulimits:
  25. nofile: { soft: 65536, hard: 65536 } # Hybriel int 6+ opened >1024 files at boot in the tracker (errno 24, 2026-10-22)
  26. environment:
  27. - HL_HOST=127.0.0.1
  28. - GITORIA_PORT=45004
  29. - GITORIA_WATCH=0
  30. - IDENT_EXCHANGE_URL=http://127.0.0.1:45002
  31. - GITORIA_SSH_SECRET=${GITORIA_SSH_SECRET:-}
  32. - GITORIA_SSH_PORT=${GITORIA_SSH_PORT:-2222}
  33. - GITORIA_SSH_HOST=${GITORIA_SSH_HOST:-}
  34. - HL_CACHE_DIR=/root/.hybriel/cache
  35. volumes:
  36. - ./:/home/gitoria
  37. - hybriel-cache:/root/.hybriel
  38. tmpfs:
  39. - /tmp:exec,mode=1777
  40. command: ./bin/hybriel project.hl
  41. # STANDBY (deploys without a gap): the same image and the same bind mount on port 45014 (= main port + 10). nginx lists it as the
  42. # `backup` server of the gitoria upstream, so it only gets requests while 45004 is down. The profile keeps `docker compose up -d` from
  43. # starting it; ../worldapi-conductor/standby-swap.sh starts it for a deploy and stops it again. gitoria has no background jobs or timers.
  44. # About 40 s with two processes. Sessions are kept
  45. # in memory and saved to .sessions: a login made on one process is unknown to the other until that one restarts and reloads them (a rare
  46. # visitor who logs in during those seconds may have to sign in once more). Repo and user data are read from the shared storage.
  47. gitoria-standby:
  48. init: true # hybriel#156: the app as PID 1 ignores SIGTERM (restart waited 10 s)
  49. build: .
  50. image: "worldapi-hybriel-runtime:debian12"
  51. working_dir: /home/gitoria
  52. network_mode: host
  53. ulimits:
  54. nofile: { soft: 65536, hard: 65536 } # Hybriel int 6+ opened >1024 files at boot in the tracker (errno 24, 2026-10-22)
  55. volumes:
  56. - ./:/home/gitoria
  57. - hybriel-cache:/root/.hybriel
  58. tmpfs:
  59. - /tmp:exec,mode=1777
  60. command: ./bin/hybriel project.hl
  61. container_name: gitoria.worldapi.org-standby
  62. profiles: ["standby"]
  63. restart: "no"
  64. environment:
  65. - HL_HOST=127.0.0.1
  66. - GITORIA_PORT=45014
  67. - GITORIA_WATCH=0
  68. - IDENT_EXCHANGE_URL=http://127.0.0.1:45002
  69. - GITORIA_SSH_SECRET=${GITORIA_SSH_SECRET:-}
  70. - GITORIA_SSH_PORT=${GITORIA_SSH_PORT:-2222}
  71. - GITORIA_SSH_HOST=${GITORIA_SSH_HOST:-}
  72. - HL_CACHE_DIR=/root/.hybriel/cache
  73. # git over SSH (ticket gitoria#7): sshd that only runs git-upload-pack / git-receive-pack; keys and permissions are asked from the app
  74. # at 127.0.0.1:45004 (docker/sshd). Needs GITORIA_SSH_SECRET in `.env` (any long random text; the app gets the same) — without it SSH is
  75. # not offered on the site. The port must be open in the firewall and DNS must point gitoria.worldapi.org at this host (the architect's).
  76. gitoria-sshd:
  77. container_name: gitoria-sshd
  78. build: ./docker/sshd
  79. network_mode: host
  80. restart: unless-stopped
  81. ulimits:
  82. nofile: { soft: 65536, hard: 65536 } # Hybriel int 6+ opened >1024 files at boot in the tracker (errno 24, 2026-10-22)
  83. environment:
  84. - GITORIA_SSH_SECRET=${GITORIA_SSH_SECRET:?set GITORIA_SSH_SECRET in .env}
  85. - GITORIA_SSH_PORT=${GITORIA_SSH_PORT:-2222}
  86. - GITORIA_URL=http://127.0.0.1:45004
  87. volumes:
  88. - ./storage/git:/repos
  89. - ./storage/sshd-hostkeys:/hostkeys
  90. volumes:
  91. hybriel-cache:

Branches

Latest commits

  • 90b4f728gitoria#25: restore the homepage cache and the parsed-blocks cache (they store data under immutable keys, no HTML); the page key, the framework readme key and the textHash key stay removedmre
  • a487248cgitoria#25: remove every cache that hid the page build (page key, Markdown render key, homepage cache, parsed-blocks cache) and the gate that only tested themmre
  • 12f2f4fegitoria: re-vendor Hybriel set-day27b, a startup fault in on Error exits 1mre
  • c21c084egitoria: write the standby service out in full so the boot gate can read the main servicemre
  • e307d69agitoria: say what is per process during the hand-overmre
  • f0cbe6a6gitoria: standby service on port 45014 and a deploy that hands over through it without a gapmre
  • 727cd083gitoria#25: README: vendor notes for Hybriel c1b1010f and the page cachemre
  • 61b72dedgitoria#25: re-vendor Hybriel master c1b1010f (W149 page cache), key the repo Readme page by slug and main commit, extend the readme-cache gatemre
  • 5b0b4b9ereadme-cache gate: use the security gate's ports when no own ports are givenmre
  • bc8f20d9gitoria#25: re-vendor Hybriel c09538bb with the W141 render cache, cache the homepage per commit, add the readme-cache gatemre
  • 9feebbd3Re-vendor Hybriel to ded47c13 (W145: Firefox start script fix)mre
  • 28ed41e5gitoria#24: one sign-in comes from hl:web batch 20, the /session/share workaround is gonemre
  • 3b2669e4gs: drop the unbuildable legacy check, fix pwa fetchmre
  • 2a2fdd77gs: C2 check before cookie experimentsmre
  • 76e0587aWIP gs 2mre
  • a80da7bdWIP gs: security gate for lazy sessions, g24 browser checksmre
  • 23fb05d8re-vendor Hybriel aaa39e69 (hl:web batch 20: login emit and Sessions.mint, tab follows a login, signed-in session cookie wins among duplicates and is re-issued with the Domain, W85 faster render, lazy sessions)mre
  • a0727ca3ident#31: the selector's sign-in returns to the page the user started on (return attribute = the login callback with next), gate checkmre
  • a06975f9gitoria: a gap between your name and Log out in the phone header (they touched); gate checks itmre
  • 32ba9d59gitoria: leave the host-only cookie experiment out of the browser gate (gitoria#24 is a separate mission)mre