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
Latest commits
- 26117255|||PR apps API: review comments on files with spaces in their namemre
- b8796cecMerge branch 'f1-broken-json' into mainGitoria
- 2f2959c5|||PR apps API: broken JSON body gives 400 invalid_json, not 500mre
- f7c6ca07Merge branch 'ident-chooser-selector' into mainGitoria
- 691abb8e|||PR tests: find ident identity choice without the removed .choose classmre
- 16a3530fMerge branch 'heap-revert' into mainGitoria
- 220a80e0|||PR Remove temporary /__heap route and heap helper; logmre
- 13f0c342Merge branch 'hl25-records' into mainGitoria
- a002ecb7|||PR records: HL25 report, heap helper, logmre
- 2492a55cTemporary keyed /__heap route for the live memory snapshotmre
- fefaedd2log: tracker PR-only, HL25 startedmre
- 21aa57calog: parkmre
- e9f950a8reports: G25c soakmre
- a7783686log: deploy 9f41ffcmre
- 9f41ffc1log: W30b mergedmre
- bef635c1Merge branch 'w30b'mre
- 15b996a5Org list: keyed rows by @id, newest first, concat instead of hand loopmre
- c4f6d9e3reports: G25c growth huntmre
- b88e39f1log: privacy cleanup donemre
- bfd7826ddocs: neutral example organisation namemre