gitoria
All repositories: gitoria
4.9 KB
# gitoria.worldapi.org on Byrodin — same pattern as tickets.worldapi.org: ./Dockerfile = debian:12-slim +# libssl3 + ca-certificates, host network, the app on 127.0.0.1:45004, nginx proxies it and ends TLS# (the vhost needs the WebSocket Upgrade headers: the live push rides `/`).# THE VHOST IS A WILDCARD: `server_name gitoria.worldapi.org *.gitoria.worldapi.org;` — every repo# is <slug>.gitoria.worldapi.org and reaches this one app; the app reads the host in the browser# (README "How a repo gets its address"). Wildcard DNS + a wildcard certificate are the architect's.# HYBRIEL COMPILES THE APP AT ITS START (static build 0f396652): scratch files go to /tmp (a tmpfs here), the build cache to# HL_CACHE_DIR = /root/.hybriel/cache inside the named volume `hybriel-cache`, so a restart starts warm and only a new# binary or changed code compiles again (cold ~18 s).# The whole folder is the bind mount: storage/mpackdb/ and .sessions/ live here and persist.# LOGIN VIA IDENT: IDENT_API_KEY and IDENT_API_SECRET come from `.env` in this folder (never written# here). The app is registered in ident with ONE origin, https://gitoria.worldapi.org (repo# addresses log in through it and come back: README "Login").# IDENT_EXCHANGE_URL: the server-side code exchange goes straight to ident's loopback port.services:gitoria:container_name: gitoria.worldapi.orginit: true # hybriel#156: the app as PID 1 ignores SIGTERM (restart waited 10 s)build: .image: "gitoria-runtime:debian12" # own tag (2026-10-31): only gitoria installs git + openssh-client; the shared tag was overwritten by another appworking_dir: /home/gitorianetwork_mode: hostrestart: unless-stoppedulimits:nofile: { soft: 65536, hard: 65536 } # Hybriel int 6+ opened >1024 files at boot in the tracker (errno 24, 2026-10-22)environment:- HL_HOST=127.0.0.1- GITORIA_PORT=45004- GITORIA_WATCH=0- IDENT_EXCHANGE_URL=http://127.0.0.1:45002- GITORIA_SSH_SECRET=${GITORIA_SSH_SECRET:-}- GITORIA_SSH_PORT=${GITORIA_SSH_PORT:-2222}- GITORIA_SSH_HOST=${GITORIA_SSH_HOST:-}- HL_CACHE_DIR=/root/.hybriel/cachevolumes:- ./:/home/gitoria- hybriel-cache:/root/.hybrieltmpfs:- /tmp:exec,mode=1777command: ./bin/hybriel project.hl# STANDBY (deploys without a gap): the same image and the same bind mount on port 45014 (= main port + 10). nginx lists it as the# `backup` server of the gitoria upstream, so it only gets requests while 45004 is down. The profile keeps `docker compose up -d` from# starting it; ../worldapi-conductor/standby-swap.sh starts it for a deploy and stops it again. gitoria has no background jobs or timers.# About 40 s with two processes. Sessions are kept# 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# visitor who logs in during those seconds may have to sign in once more). Repo and user data are read from the shared storage.gitoria-standby:init: true # hybriel#156: the app as PID 1 ignores SIGTERM (restart waited 10 s)build: .image: "gitoria-runtime:debian12" # own tag (2026-10-31): only gitoria installs git + openssh-client; the shared tag was overwritten by another appworking_dir: /home/gitorianetwork_mode: hostulimits:nofile: { soft: 65536, hard: 65536 } # Hybriel int 6+ opened >1024 files at boot in the tracker (errno 24, 2026-10-22)volumes:- ./:/home/gitoria- hybriel-cache:/root/.hybrieltmpfs:- /tmp:exec,mode=1777command: ./bin/hybriel project.hlcontainer_name: gitoria.worldapi.org-standbyprofiles: ["standby"]restart: "no"environment:- HL_HOST=127.0.0.1- GITORIA_PORT=45014- GITORIA_WATCH=0- IDENT_EXCHANGE_URL=http://127.0.0.1:45002- GITORIA_SSH_SECRET=${GITORIA_SSH_SECRET:-}- GITORIA_SSH_PORT=${GITORIA_SSH_PORT:-2222}- GITORIA_SSH_HOST=${GITORIA_SSH_HOST:-}- HL_CACHE_DIR=/root/.hybriel/cache# git over SSH (ticket gitoria#7): sshd that only runs git-upload-pack / git-receive-pack; keys and permissions are asked from the app# 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# 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).gitoria-sshd:container_name: gitoria-sshdbuild: ./docker/sshdnetwork_mode: hostrestart: unless-stoppedulimits:nofile: { soft: 65536, hard: 65536 } # Hybriel int 6+ opened >1024 files at boot in the tracker (errno 24, 2026-10-22)environment:- GITORIA_SSH_SECRET=${GITORIA_SSH_SECRET:?set GITORIA_SSH_SECRET in .env}- GITORIA_SSH_PORT=${GITORIA_SSH_PORT:-2222}- GITORIA_URL=http://127.0.0.1:45004volumes:- ./storage/git:/repos- ./storage/sshd-hostkeys:/hostkeysvolumes:hybriel-cache:
Branches
- f1-broken-json
- f2-api-bugs
- gp-gate-ports
- heap-revert
- hl25-records
- ident-chooser-selector
- mainmain branch
- p51-public-pr-reads
- records-1112
- s25-no-session-on-login-error
- v59
- w52-person-approval
- w52b-approval-followup
- w52c-header-phone
- w53-pulls-speed-pr
- w54-repo-rename-pr
- w55-rename-org
- w56-owner-members
- w62-pr-close
- w63-force-push
Latest commits
- 772c401fgitoria#45: W45 report, logmre
- b6b793afgitoria#45: PR page with reviews, threads, conversation, Review again (merge w45-pr-page)mre
- fb9e7554gitoria#45: browser gate: a /pulls title links to the PR pagemre
- f7198131gitoria#45: tests/pr-page.mjs gatemre
- 483141d0gitoria#45: Settings shows the Apps heading only to the ownermre
- e2eff8f6gitoria#45: the PR page /pulls/N with reviews, threads, verdicts, conversation, comment, reply, resolve and Review againmre
- 7a602839gitoria#45: raiseEvent can send to one app only; people's comments, replies and resolving in reviews.hlmre
- 19edc1f5gitoria#44: contract v1.3.1, what outdated meansmre
- 7c2277ccgitoria#38: worker reports W40–W46, logmre
- 1c3fa842gitoria#45 #47: worker briefsmre
- 0a46bf7dgitoria#47: apps API contract v1.3 (status read route, statuses + required on the pull)mre
- 3373f7c3gitoria#38: push API contract v1.2.1, reviews, worker briefs and logmre
- 34143d2cgitoria#46: closing brace of appComments lost in the mergemre
- 54927c9cgitoria#46: PR statuses and required checks before merge (merge w46-status)mre
- 187e1871gitoria#46: badges without decorative bordersmre
- 6b022798gitoria#46: tests/status.mjs in GATESmre
- c6162f00gitoria#46: status badges on /pulls, Required before merge in Settingsmre
- e5a0b64egitoria#46: PUT statuses/<sha>, required contexts block the merge on the servermre
- 26a140e3gitoria#44: reviews, inline threads, replies, conversation for apps (merge w44-reviews)mre
- 888dbf87gitoria#44: unknown API paths answer the contract's JSON 404 and sit above the page routesmre