gitoria
All repositories: gitoria
5.2 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:-}# Opt-in GC allocation budget: gitoria#25, hybriel#374, docs/GC-BUDGET.md.- HL_GC_BUDGET_MB=32- 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:-}# Opt-in GC allocation budget: gitoria#25, hybriel#374, docs/GC-BUDGET.md.- HL_GC_BUDGET_MB=32- 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
- c3d95b6e|||PR separate names and addresses, rename repositories in Settings (#53)mre
- ce08920dMerge branch 'w52c-header-phone' into mainGitoria
- 0bab9e46|||PR header: ident status wraps on phones instead of clippingmre
- e7af3eceMerge branch 'w52b-approval-followup' into mainGitoria
- c01e66c6|||PR approvals follow-up: live Merge after status writes, helpers (#52)mre
- 841da497Merge branch 'w53-pulls-speed-pr' into mainGitoria
- 80307ae2|||PR pulls page cache: live PR numbers, complete scans onlymre
- 69141f65|||PR pulls page: cache the git part per repo by branch tipsmre
- 155861f6Merge branch 'w52-person-approval' into mainGitoria
- b5435de8|||PR person approvals: second Kunibert round (#52)mre
- 3a8b2fb8|||PR person approvals: Kunibert review fixes (#52)mre
- 2a89d8d0|||PR person approvals: Approve button for people; merge needs the required checks or a listed person's approval (#52)mre
- 83f0c953Report person approval verificationmre
- 3ae94b86Record browser failures and verify owned tab cleanupmre
- 54eec687Gate person approvals and merge alternativesmre
- 12b08829Add person approvals for pull request headsmre
- 55c84779Merge branch 'gp-gate-ports' into mainGitoria
- 57af42bbREADME: point to deploy.sh for the port listmre
- d63375d2README: gate commands with explicit portsmre
- feeaa701|||PR gates: explicit ports only, deploy.sh passes themmre