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
- w64-org-slash
Latest commits
- db443456log: vinzenz note retry 2mre
- 802f229alog: kunibert repo ping provenmre
- 2d2eaa92log: Kunibert connected to kunibert repomre
- 65d5f80alogmre
- dab74b0dW49 report, logmre
- fd4fc028Exercise member status reads with a populated check statemre
- 536ca6f9Allow repository members to read pull workflow APIs with user tokensmre
- 705dd834W49 missionmre
- b554cd5flogmre
- f4c9440ddeploy.sh: tar --hard-dereference for the live data backupmre
- 1a687b15Merge branch 'w48-member-merge'mre
- 166c775fW48 report, logmre
- 1b4623f0Members merge pull requests: API route, button on /pulls and /pulls/N, one shared merge pathmre
- 1075c38cW48 mission, logmre
- 17bdd0d6V37/V39 missions, logmre
- 146de5f8Re-vendor gitoria to Hybriel set-day39 (51e921d7)mre
- e874e44dtests/status-keyed: app token lives 60 s so it outlives the gate's two restartsmre
- 270b8d61deploy.sh: DEPLOY_STOP_START=1 stops, waits for the old pid, then starts (mpackdb freeze, replaces the standby swap)mre
- 3f9235b8project.hl: drop the dummy /pulls/:n component route (hybriel#294 is fixed in day37)mre
- c90daf19Re-vendor gitoria to Hybriel set-day37 (f6b3d45b)mre